/* "Sniff test": a live check of the visitor's own website, run in front of them. Isolated from styles.css so it is easy to remove. */
.sniff { position: relative; background: var(--cream); padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; }
.sniff-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.sniff .eyebrow { color: var(--red); }
.sniff-form { display: grid; gap: 12px; margin: 26px 0 10px; max-width: 520px; }
.sniff-form input { width: 100%; font: inherit; font-weight: 700; font-size: 1.15rem; padding: 18px 20px; min-height: 60px; border: 3px solid var(--ink); border-radius: 5px; background: #fff; color: var(--ink); }
.sniff-form input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.sniff-form .btn { justify-content: center; border: 0; cursor: pointer; }
.sniff-form .btn[disabled] { opacity: .7; cursor: progress; }
.sniff-note { font-weight: 700; font-size: .92rem; color: var(--ink-soft); max-width: 34em; }
.sniff-err { color: #b00020; font-weight: 800; min-height: 1.4em; }

.sniff-stage { position: relative; background: #fff; padding: clamp(18px, 3vw, 30px); clip-path: var(--shape-b); filter: none; }
.sniff-wrap { filter: drop-shadow(0 14px 18px rgba(20,17,15,.2)); }
.sniff-track { position: relative; height: 150px; margin-bottom: 10px; }
.sniff-line { position: absolute; left: 4%; right: 4%; bottom: 20px; height: 0; border-top: 5px dotted rgba(20,17,15,.32); }
.sniff-stop { position: absolute; bottom: 8px; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); transition: background .3s, transform .4s var(--ease); }
.sniff-stop.on { background: var(--yellow); transform: scale(1.25); }
.s1 { left: 18%; } .s2 { left: 50%; } .s3 { left: 82%; }
.sniff-dog { position: absolute; left: 4%; bottom: 14px; width: 120px; height: auto; transform: translateX(-50%); transition: left 1s var(--ease); will-change: left; }
.sniff-dog.walking { animation: sniffBob .5s ease-in-out infinite; }
@keyframes sniffBob { 50% { translate: 0 -6px; } }
.sniff-bubble { position: absolute; left: 4%; top: 0; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; padding: 8px 14px; border-radius: 14px 14px 14px 2px; font-size: .95rem; max-width: 240px; transition: opacity .3s; }

.sniff-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sniff-card { background: var(--cream); padding: 14px 14px 16px; min-height: 124px; clip-path: var(--shape-a); display: grid; align-content: start; gap: 6px; opacity: .55; transition: opacity .4s, transform .5s var(--ease), background .3s; }
.sniff-card:nth-child(2) { clip-path: var(--shape-b); } .sniff-card:nth-child(3) { clip-path: var(--shape-c); }
.sniff-card .mark { width: 30px; height: 30px; display: grid; place-items: center; background: #ddd; font-family: var(--display); font-weight: 700; clip-path: var(--shape-b); }
.sniff-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; margin: 0; }
.sniff-card p { margin: 0; font-weight: 600; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); }
.sniff-card.done { opacity: 1; transform: translateY(-4px); background: #fff; }
.sniff-card.good .mark { background: var(--mint); } .sniff-card.warn .mark { background: #ffd0cc; }
.sniff-card .shimmer { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #e6dfd0 25%, #f4eede 50%, #e6dfd0 75%); background-size: 200% 100%; animation: shim 1.2s linear infinite; }
@keyframes shim { to { background-position: -200% 0; } }

.sniff-verdict { margin-top: 16px; display: grid; gap: 12px; }
.sniff-verdict[hidden] { display: none; }
.sniff-paws { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sniff-paws b { font-family: var(--display); font-size: 1.5rem; line-height: 1.05; }
.sniff-paws .paws { display: flex; gap: 4px; } .sniff-paws svg { width: 30px; height: 30px; fill: var(--ink); } .sniff-paws svg.off { fill: rgba(20,17,15,.18); }
.sniff-win { background: var(--yellow); padding: 12px 16px; font-weight: 700; clip-path: var(--shape-a); }
.sniff-win strong { font-family: var(--display); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; display: block; }
.sniff-stamp { position: absolute; right: 14px; top: 12px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: .95; color: var(--red); border: 4px solid var(--red); padding: 4px 10px; text-align: center; background: rgba(255,255,255,.85); transform: rotate(-10deg) scale(2); opacity: 0; transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .2s; pointer-events: none; }
.sniff-stamp.on { transform: rotate(-10deg) scale(1); opacity: 1; }
.sniff-cta { display: inline-flex; width: fit-content; }
@media (max-width: 900px) {
  .sniff-grid { grid-template-columns: 1fr; }
  .sniff-cards { grid-template-columns: 1fr; } .sniff-card { min-height: 0; grid-template-columns: 34px 1fr; align-items: start; column-gap: 12px; } .sniff-card .mark { grid-row: span 2; }
  .sniff-dog { width: 96px; } .sniff-track { height: 126px; }
}
@media (prefers-reduced-motion: reduce) { .sniff-dog { transition: none; } .sniff-dog.walking, .sniff-card .shimmer { animation: none; } .sniff-stamp { transition: none; } }

/* Visible about line: gives search engines and AI crawlers a plain-text summary without relying on JavaScript */
.about { background: var(--ink); color: var(--cream); padding: 40px 0 8px; }
.about p { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.6; opacity: .85; }
.about a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Touch targets for footer links */
.foot nav a, .about a { display: inline-block; padding: 10px 6px; min-height: 44px; }
.about a { padding: 8px 4px; min-height: 0; }
@media (max-width: 820px) { .foot nav { gap: 6px 14px; } }

/* pen-drawn waiting lines inside the result cards */
.sniff-card:not(.done) p:empty::before, .sniff-card:not(.done) p .shimmer { content: ""; display: block; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cstyle%3Epath%7Bfill:none;stroke:%2314110F;stroke-opacity:.5;stroke-width:3;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:d 1.6s ease-in-out infinite%7D@keyframes d%7B0%25%7Bstroke-dashoffset:1%7D60%25%7Bstroke-dashoffset:0%7D90%25%7Bstroke-dashoffset:0;opacity:1%7D100%25%7Bopacity:0%7D%7D%3C/style%3E%3Cpath vector-effect='non-scaling-stroke' pathLength='1' d='M4 10C40 3 60 15 100 9S170 4 210 10 270 14 296 8'/%3E%3C/svg%3E") left center / 100% 100% no-repeat; background-color: transparent; animation: none; }
@media (prefers-reduced-motion: reduce) { .sniff-card:not(.done) p:empty::before { background: none; border-bottom: 3px dashed rgba(20,17,15,.4); height: 8px; } }
