/* trade-in.css: the page's own layout (plan.md "## Trade-In"). Only places and sizes its parts, with system.css's
   tokens; the components (header base, form, prints, reviews, FAQ, close) come from components.css. */

/* ---------- 1. the header: footage bleeding off the left edge and fading into the cream; the words and the form box in
   a right-hand column; the line on the lawn in front of the dog ---------- */
.ihero--side { padding: 0; }
.ihero--side .ihero__in { position: relative; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) min(500px, 37vw); min-height: clamp(640px, calc(100svh - var(--header-h)), 820px); padding-right: var(--gutter); }
.ihero--side .ihero__stage { position: absolute; top: 0; bottom: 0; left: 0; width: 72%; background: var(--c-ink); }
.ihero--side .ihero__slides { border-radius: 0; }
.ihero--side .ihero__ground { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ihero--side .ihero__ground path { fill: none; }
.ihero--side .ihero__ground .loop__mask { stroke-width: 22px; }
.ihero--side .ihero__ground[data-loop-on] .loop__mask { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-slow) var(--ease-out); }
.ihero--side .ihero__fade { position: absolute; top: 0; bottom: 0; right: -2px; z-index: 4; width: 24%; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-paper) 0%, transparent), color-mix(in srgb, var(--c-paper) 70%, transparent) 62%, var(--c-paper)); }
.ihero--side .stop--on-media { right: auto; left: 14px; }
.ihero--side .ihero__copy { grid-column: 2; align-self: center; gap: 0.9rem; padding: 2.5rem 0 3rem; }
.ihero--side .ihero__title { max-width: 13ch; }
.ihero--side .ihero__formwrap { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .ihero--side .ihero__ground .loop__mask { stroke-dashoffset: 0; transition: none; } }
@media (max-width: 1099px) {
  .ihero--side .ihero__in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0; }
  .ihero--side .ihero__stage { position: relative; width: auto; aspect-ratio: 16 / 9; max-height: 62svh; }
  .ihero--side .ihero__fade { top: auto; left: 0; right: 0; bottom: -2px; width: auto; height: 30%; background: linear-gradient(180deg, color-mix(in srgb, var(--c-paper) 0%, transparent), var(--c-paper)); }
  .ihero--side .ihero__copy { grid-column: 1; padding: 0 var(--gutter) 0; margin-top: -2.5rem; max-width: 46rem; }
  .ihero--side .ihero__title { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); max-width: none; }
  .ihero--side .ihero__line { font-size: 1.02rem; }
}
@media (max-width: 679px) { .ihero--side .ihero__stage { aspect-ratio: 16 / 11; } .ihero--side .ihero__copy { margin-top: -1.75rem; } }

/* ---------- 2. the compare tool: one yard from above, other systems left of the handle, an I-Fence right of it ---------- */
.compare__head { margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.cmp__rows { display: none; }
.cmp__stage { aspect-ratio: 16 / 9; box-shadow: var(--shadow-m); --x: 50%; }
.cmp__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; }
.cmp__layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cmp__layer--old { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp__layer--new { clip-path: inset(0 0 0 var(--x)); }
.cmp__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cmp__band { fill: none; stroke: var(--c-white); stroke-opacity: 0.36; filter: blur(2.5px); }
.cmp__edge { fill: none; stroke: var(--c-coral); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; }
.cmp__dimhalo { stroke: rgba(20, 26, 56, 0.45); stroke-width: 6; stroke-linecap: round; }
.cmp__dim { stroke: var(--c-white); stroke-width: 2.5; stroke-linecap: round; }
.cmp__halo { fill: none; stroke: var(--c-white); stroke-width: 10; }
.cmp__line { fill: none; stroke: var(--c-cobalt); stroke-width: 4; stroke-dasharray: 13 10; stroke-linecap: round; }
.cmp__tag { position: absolute; left: 0; top: 0; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--c-white); font: var(--fw-ui) 14px/1.3 var(--font-ui); white-space: nowrap; box-shadow: var(--shadow-m); }
.cmp__tag--old { color: var(--c-coral-text); }
.cmp__tag--new { color: var(--c-brand); }
.cmp__label { position: absolute; top: 16px; margin: 0; padding: 7px 15px; border-radius: var(--radius-pill); font: var(--fw-ui) 15px/1.2 var(--font-ui); box-shadow: var(--shadow-m); }
.cmp__label--old { left: 16px; background: var(--c-white); color: var(--c-ink); }
.cmp__label--new { right: 16px; background: var(--c-cobalt); color: var(--c-on-brand); }
.cmp__cards { position: absolute; top: 54%; translate: 0 -50%; display: grid; gap: 12px; width: min(290px, 24%); }
.cmp__cards--old { left: 16px; }
.cmp__cards--new { right: 16px; }
.cmp__card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 11px; align-items: start; padding: 12px 15px 13px 12px; }
.cmp__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-brand-tint); color: var(--c-cobalt); font-size: 19px; }
.cmp__cards--old .cmp__ic { background: color-mix(in srgb, var(--c-coral) 14%, var(--c-white)); color: var(--c-coral-text); }
.cmp__tx { display: grid; gap: 2px; min-width: 0; }
.cmp__tx b { font: var(--fw-ui) 15px/1.3 var(--font-ui); color: var(--c-ink); }
.cmp__tx span { font-size: 14px; line-height: 1.4; color: var(--c-ink); }
/* the battery: where the warning comes; the wire: its cross-section, the I-Fence's 30% thicker */
.cmp__meter { grid-column: 2; position: relative; height: 9px; margin-top: 9px; border-radius: var(--radius-pill); background: var(--c-line); }
.cmp__meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.cmp__meter em { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; translate: -50% 0; }
.cmp__meter--old i { width: 66%; background: var(--c-coral); }
.cmp__meter--old em { left: 66%; background: var(--c-coral-text); }
.cmp__meter--new i { width: 100%; background: repeating-linear-gradient(90deg, var(--c-lawn) 0 calc(100% / 12 - 2px), var(--c-white) calc(100% / 12 - 2px) calc(100% / 12)); }
.cmp__meter--new em { left: 92%; background: var(--c-lawn-text); }
.cmp__wire { display: block; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--c-accent) 0 34%, var(--c-ink) 36% 100%); }
.cmp__wire--old { width: 14px; height: 14px; }
.cmp__wire--new { width: 18px; height: 18px; background: radial-gradient(circle at 50% 50%, var(--c-accent) 0 34%, var(--c-cobalt) 36% 100%); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 4; width: 0; pointer-events: none; }
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--c-white); box-shadow: 0 0 14px rgba(20, 26, 56, 0.35); }
.cmp__knob { position: absolute; top: 50%; left: 0; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--c-white); color: var(--c-cobalt); font-size: 21px; box-shadow: var(--shadow-m), 0 0 0 5px color-mix(in srgb, var(--c-white) 40%, transparent); }
.cmp__knob .icon:first-child { rotate: 90deg; margin-right: -4px; }
.cmp__knob .icon:last-child { rotate: -90deg; margin-left: -4px; }
.cmp__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmp__stage:has(.cmp__range:focus-visible) .cmp__knob { outline: 3px solid var(--c-cobalt); outline-offset: 3px; }
@media (max-width: 1023px) { .cmp__cards { width: min(250px, 27%); } .cmp__tx span { font-size: 13px; } }
@media (max-width: 859px) {
  .cmp__cards { display: none; }
  .cmp__rows { display: block; margin-bottom: 1rem; }
  .cmp__rowhead { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 0 0.5rem; }
  .cmp__rowhead span { justify-self: start; padding: 4px 12px; border-radius: var(--radius-pill); font: var(--fw-ui) 13px/1.3 var(--font-ui); }
  .cmp__rowhead span:first-child { background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
  .cmp__rowhead span:last-child { background: var(--c-cobalt); color: var(--c-on-brand); }
  .cmp__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
  .cmp__list li { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.6rem; padding: 0.7rem 0.8rem; border-radius: var(--radius-s); background: var(--c-paper); }
  .cmp__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.4rem; font: var(--fw-ui) 13px/1.3 var(--font-ui); color: var(--c-ink-soft); }
  .cmp__k .icon { color: var(--c-cobalt); }
  .cmp__o, .cmp__n { font-size: 14px; line-height: 1.38; color: var(--c-ink); }
  .cmp__o { padding-left: 0.6rem; border-left: 3px solid var(--c-coral); }
  .cmp__n { padding-left: 0.6rem; border-left: 3px solid var(--c-cobalt); }
}
@media (max-width: 679px) { .cmp__stage { aspect-ratio: 4 / 5; } .cmp__label { top: 12px; padding: 6px 12px; font-size: 14px; } .cmp__label--old { left: 12px; } .cmp__label--new { right: 12px; } .cmp__tag { font-size: 13px; padding: 4px 10px; } }

/* ---------- 3. he chose this one: Rusty's own print, ringed by the loop, with his awards ---------- */
.chose__media { display: grid; justify-items: center; }
.chose__print { width: min(100%, 440px); }
.chose__print .loop { --loop-inset: -14px; --loop-r: 16px; }
.chose__crop { display: block; overflow: hidden; aspect-ratio: 4 / 3.3; border-radius: 2px; }
.chose__crop img { display: block; width: 136%; max-width: none; margin: -4% 0 0 -17%; }
.chose__badges { display: grid; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chose__badges li { display: flex; align-items: center; gap: 0.6rem; font-weight: var(--fw-ui); color: var(--c-ink); }
.chose__badges .icon { flex: none; width: 1.5em; height: 1.5em; padding: 0.35em; border-radius: 50%; background: var(--c-brand-tint); color: var(--c-cobalt); }
@media (max-width: 899px) { .chose__print { width: min(86%, 400px); margin: 0.75rem 0 1.25rem; } }
