/* The home page's first screen: the headline and address box, then the promise beside a computer and phone showing
   made-up businesses rebuilt (each wipes from its old site to its new one along a glowing diagonal), then the facts.
   Sized so all of it fits a laptop browser window. Phones get one column: words first, then the computer and phone. */
/* fills the window under the header, so nothing below peeks in; the extra room goes above and below the content */
.home-hero { background: radial-gradient(60% 50% at 50% 0%, rgba(224, 165, 38, .12), transparent 70%), var(--brand-deep); color: #dfe6ee;
  padding: 1.3rem 0 1.4rem; overflow: hidden; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px);
  display: flex; flex-direction: column; justify-content: space-evenly; }
.hh-top { text-align: center; margin-bottom: 1.4rem; }
.hh-top h1 { max-width: none; margin: 0 auto .15em; color: #fff; font-size: clamp(2.1rem, 3.3vw, 2.9rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 650; }
.hh-top .swash { color: #f3c58f; }
.hh-top .claim.big { margin: .7rem auto 0; max-width: 760px; padding: .4rem; border-radius: 20px; background: #fff; border: 0; flex-wrap: nowrap;
  box-shadow: 0 0 0 6px rgba(224, 165, 38, .25), 0 24px 60px rgba(0, 0, 0, .3); }
.hh-top .claim.big input { flex: 1 1 auto; min-width: 0; border: 0; padding: .75rem 1rem; font-size: 1.15rem; text-overflow: ellipsis; }
.hh-top .claim.big input:focus { outline: none; }
.hh-top .claim.big button { flex: none; padding: .8rem 1.4rem; font-size: 1.05rem; border-radius: 14px; }
.hh-top .error { color: #ffb4a6; margin: .6rem 0 0; }
.hh-top .scratch-link { margin-top: .6rem; color: #c9d3de; } .home-hero .linkish { color: #fff; }

/* the words and the computer, centered together as one group */
.hh-row { display: grid; grid-template-columns: max-content 620px; justify-content: center; gap: 56px; align-items: center; }
.hh-title { margin: 0 0 .5rem; font: 600 2.25rem/1.15 var(--serif); color: #fff; letter-spacing: -.015em; } .hh-title em { color: #f3c58f; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.ticks li { display: flex; gap: .8rem; align-items: center; color: #fff; font-size: 1.3rem; font-weight: 600; }
.ticks em { font: italic 600 1em var(--serif); color: #f3c58f; }
/* each tick pops in once, one after another, and stays */
.tick { position: relative; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--accent); transform: scale(.4); opacity: 0;
  animation: tickPop .45s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(.75s + var(--k) * .25s); }
.tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #3b2a05; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@keyframes tickPop { to { transform: none; opacity: 1; } }

/* the showcase: five businesses take turns (7s each); the phone hangs off the computer's corner */
.showcase { position: relative; display: grid; }
.sc-card { grid-area: 1 / 1; position: relative; padding-right: 11%; opacity: 0; animation: scShow 35s infinite both; animation-delay: calc(var(--j) * 7s); }
.sc-card * { animation-delay: inherit; }
.sc-lap { box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-body { position: relative; overflow: hidden; animation-delay: inherit; }
.sc-body img { display: block; width: 100%; object-fit: cover; object-position: top; }
.sc-lap .sc-body img { aspect-ratio: 1100 / 704; }
.sc-new { position: absolute; inset: 0; }
.sc-edge { position: absolute; top: -6%; bottom: -6%; width: 3px; margin-left: -1.5px; pointer-events: none; transform: skewX(-18.9deg); opacity: 0;
  background: linear-gradient(#fff3dd, var(--accent)); box-shadow: 0 0 14px 4px rgba(243, 197, 143, .8), 0 0 40px 10px rgba(224, 165, 38, .45); }
.sc-lap .sc-new { animation: lapWipe 35s infinite both; animation-delay: inherit; } .sc-lap .sc-edge { animation: lapEdge 35s infinite both; animation-delay: inherit; }
.sc-phone { position: absolute; right: 0; bottom: -9%; width: 25%; }
.sc-phone .sc-body { border-radius: 18px; border: 5px solid #0b1620; background: #0b1620; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.sc-phone .sc-body img { aspect-ratio: 320 / 640; border-radius: 13px; }
.sc-phone .sc-new { animation: phWipe 35s infinite both; animation-delay: inherit; } .sc-phone .sc-edge { top: -3%; bottom: -3%; animation: phEdge 35s infinite both; animation-delay: inherit; }
/* one business's 7s: fade in on its old site, the edge crosses the computer then the phone, hold, fade out */
@keyframes scShow { 0% { opacity: 0; transform: scale(.985); } 1.43%, 18.57% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; } }
@keyframes lapWipe { 0%, 4% { clip-path: polygon(0 0, 0 0, -22% 100%, -22% 100%); } 8%, 100% { clip-path: polygon(0 0, 122% 0, 100% 100%, -22% 100%); } }
@keyframes lapEdge { 0%, 4% { left: -11%; opacity: 0; } 4.14%, 7.86% { opacity: 1; } 8%, 100% { left: 111%; opacity: 0; } }
@keyframes phWipe { 0%, 6.48% { clip-path: polygon(0 0, 0 0, -69% 100%, -69% 100%); } 8.71%, 100% { clip-path: polygon(0 0, 169% 0, 100% 100%, -69% 100%); } }
@keyframes phEdge { 0%, 6.48% { left: -35%; opacity: 0; } 6.63%, 8.57% { opacity: 1; } 8.71%, 100% { left: 135%; opacity: 0; } }

/* the facts, small enough to share the first screen */
.home-hero .facts { margin-top: 2.6rem; padding: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .1); gap: 1.4rem; }
.home-hero .facts svg { width: 34px; height: 34px; padding: 7px; } .home-hero .facts b { font-size: 1rem; } .home-hero .facts span { font-size: .84rem; }

@media (max-width: 1100px) { .hh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; } }
@media (max-width: 860px) {
  .home-hero { padding: 2rem 0 2.5rem; }
  .hh-top h1 { font-size: 2.1rem; }
  /* phones: the field and the button as two clean pieces, not one squeezed box */
  .hh-top .claim.big { flex-direction: column; gap: .65rem; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .hh-top .claim.big input { width: 100%; background: #fff; border-radius: 14px; padding: 1rem 1.1rem; font-size: 1.08rem; color: var(--ink);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 5px rgba(224, 165, 38, .22), 0 12px 30px rgba(0, 0, 0, .3); }
  .hh-top .claim.big input:focus { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(224, 165, 38, .3), 0 12px 30px rgba(0, 0, 0, .3); }
  .hh-top .claim.big button { width: 100%; padding: 1rem; border-radius: 14px; font-size: 1.08rem; }
  .hh-row { grid-template-columns: 1fr; gap: 2rem; } .hh-title { font-size: 1.9rem; } .ticks li { font-size: 1.15rem; }
  .showcase { margin-bottom: 1.5rem; } .sc-phone { bottom: -6%; }
  .home-hero .facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tick { animation: none; opacity: 1; transform: none; }
  .sc-card, .sc-card * { animation: none !important; } .sc-card:first-child { opacity: 1; } .sc-card .sc-new { clip-path: none; }
}
