/* ===========================================================================
   Block styles: testimonials, three moves, tabs, clock, toolkit, trades,
   pricing, FAQ, final CTA. Tokens come from hyper.css.
   =========================================================================== */

/* --- testimonials --------------------------------------------------------- */

.testimonials__head{margin-bottom:2.5rem}
.testimonials{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:768px){.testimonials{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.testimonials{grid-template-columns:repeat(3,1fr)}}
.testimonial{display:flex;flex-direction:column;gap:1rem}
.testimonial__body{flex:1;font-size:1rem;line-height:1.55}
.testimonial__by{display:flex;align-items:center;gap:.625rem}
.testimonial__by>span{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.testimonial__name{font-size:.875rem;font-weight:500}
.testimonials__note{margin-top:1.5rem;max-width:36rem;margin-inline:auto}

.avatar{
  width:2.25rem;height:2.25rem;flex:none;border-radius:var(--r-full);
  display:grid;place-items:center;
  font-family:var(--font-display);font-weight:600;font-size:.8125rem;
}
.avatar--ok{background:rgba(0,120,109,.14);color:var(--ok)}
.avatar--info{background:rgba(16,78,100,.14);color:var(--info)}
.avatar--warn{background:rgba(180,120,0,.16);color:#8a5c00}
.avatar--accent{background:var(--accent-soft);color:var(--accent-ink)}

/* A <picture> avatar sits in the same 2.25rem circle as the monogram, so the
   two can appear in the same list without the row shifting. overflow:hidden on
   the picture does the cropping; a border-radius on the img alone leaves square
   corners in Safari. */
.avatar--photo{
  display:block;padding:0;
  /* Belt and braces. overflow:hidden on the picture does the circular crop,
     and the radius is repeated on the img because Safari has historically
     painted square corners through an overflow-hidden ancestor when the child
     is a replaced element. isolation gives it its own stacking context so the
     clip cannot be ignored during a composited scroll. */
  overflow:hidden;
  border-radius:var(--r-full);
  isolation:isolate;
  background:var(--secondary);
  box-shadow:inset 0 0 0 1px rgba(10,10,10,.06);
}
.avatar--photo img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  border-radius:var(--r-full);
}

/* --- three moves ---------------------------------------------------------- */

.how__head{margin-bottom:3rem}
.how__head .lead{margin-top:.75rem}
.moves{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media(min-width:768px){
  .moves{grid-template-columns:repeat(3,1fr);gap:0}
  .move{padding-inline:2rem}
  .move+.move{border-left:1px solid var(--panel-hairline)}
  .move:first-child{padding-left:0}
  .move:last-child{padding-right:0}
}
.move__n{font-size:.8125rem;color:var(--panel-fg-faint);margin-bottom:1rem}
.move__title{margin:1rem 0 .5rem}
.move__body{font-size:.9375rem;line-height:1.55}

/* --- tabs ----------------------------------------------------------------- */

.difference__head{margin-bottom:2rem}
.difference__head .lead{margin-top:1rem}
.tabs__rail{
  display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.5rem;margin-bottom:1.25rem;
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
.tabs__rail::-webkit-scrollbar{display:none}
@media(min-width:768px){.tabs__rail{justify-content:center;overflow:visible}}
.tabs__tab{
  display:flex;align-items:center;gap:.4rem;flex:none;scroll-snap-align:start;
  font-size:.875rem;padding:.625rem 1rem;min-height:44px;
  border-radius:var(--r-full);background:var(--secondary);color:var(--muted-foreground);
  transition:background .15s,color .15s;
}
.tabs__tab:hover{color:var(--foreground)}
.tabs__tab.is-active{background:var(--foreground);color:#fff}

.tabs__panel{display:grid;gap:2rem;align-items:center;grid-template-columns:1fr}
@media(min-width:1024px){.tabs__panel{grid-template-columns:1fr 1fr;gap:3rem;padding:2.5rem}}
.tabs__copy .lead{margin-top:.75rem}
.tabs__panel+.tabs__panel{margin-top:1rem}

/* Without JS every panel renders, so no content is unreachable.
   The script adds .is-enhanced, and only then do we collapse to one. */
.tabs.is-enhanced .tabs__panel{display:none}
.tabs.is-enhanced .tabs__panel.is-active{display:grid}
.tabs.is-enhanced .tabs__panel+.tabs__panel{margin-top:0}

/* --- demo fragments ------------------------------------------------------- */

.demo{background:var(--secondary);border-radius:var(--r-card);padding:1.25rem;font-size:.875rem}
.demo__row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.625rem 0}
.demo__row+.demo__row{border-top:1px solid var(--border)}
.demo__row--muted{opacity:.5}
.demo__k{font-weight:500}
.demo__chip{
  font-size:.75rem;padding:.3rem .6rem;border-radius:var(--r-full);
  background:#fff;border:1px solid var(--border);color:var(--muted-foreground);white-space:nowrap;
}
.demo__chip--ok{background:rgba(0,120,109,.10);border-color:transparent;color:var(--ok)}
.demo__chip--warn{background:rgba(252,187,0,.18);border-color:transparent;color:#8a5c00}
.demo--timer{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}
.demo__steps{display:grid;gap:.5rem;font-size:.8125rem}
.demo__steps li{display:flex;align-items:center;gap:.5rem}
.demo__cap{font-weight:500;margin-bottom:.75rem}
.demo__foot{font-size:.75rem;color:var(--muted-foreground);margin-top:.75rem}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.slot{
  text-align:center;padding:.625rem .25rem;border-radius:var(--r-base);
  background:#fff;border:1px solid var(--border);font-size:.8125rem;
}
.slot.is-gone{opacity:.35;text-decoration:line-through}
.slot.is-picked{background:var(--accent);color:#fff;border-color:transparent;font-weight:500}
.demo__lines li{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0}
.demo__total{
  display:flex;justify-content:space-between;gap:1rem;
  padding-top:.625rem;margin-top:.375rem;border-top:1px solid var(--border);font-weight:500;
}
.demo__total--final{color:var(--ok)}

.ring{position:relative;display:grid;place-items:center;flex:none}
.ring svg{transform:rotate(-90deg)}
.ring__bg{fill:none;stroke:var(--border);stroke-width:6}
.ring__fg{fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round}
.ring__label{position:absolute;text-align:center;line-height:1.1}
.ring__label strong{display:block;font-family:var(--font-display);font-size:1.125rem;font-weight:600}
.ring__label em{font-style:normal;font-size:.6875rem;color:var(--muted-foreground)}

.dot{width:.5rem;height:.5rem;border-radius:var(--r-full);background:var(--border);flex:none}
.dot--done{background:var(--ok)}
.dot--live{background:var(--accent);box-shadow:0 0 0 3px rgba(255,122,0,.2)}

/* --- clock feature -------------------------------------------------------- */

.clock{display:grid;gap:2.5rem;grid-template-columns:1fr;align-items:center}
@media(min-width:1024px){.clock{grid-template-columns:1.1fr .9fr;gap:4rem}}
.clock__copy .h2{margin:.5rem 0 1.25rem;max-width:16ch}
.clock__copy .lead+.lead{margin-top:1rem}
.arrows{display:grid;gap:1rem;margin-top:2rem}
.arrows li{display:flex;gap:.75rem;font-size:.9375rem;line-height:1.55;color:var(--panel-fg-dim)}
.arrows strong{color:var(--panel-fg)}
.arrows__mark{color:var(--accent);flex:none;font-weight:600}

.dispatch{padding:1.25rem}
.dispatch__eyebrow{margin-bottom:1rem}
.dispatch__job{display:flex;align-items:center;gap:.5rem;font-weight:500;margin-bottom:1.25rem}
.dispatch__flame{color:var(--danger);display:flex}
.dispatch__timer{
  display:flex;align-items:center;gap:1rem;
  padding-block:1rem;border-block:1px solid var(--panel-hairline);
}
.dispatch__timer .ring__bg{stroke:rgba(255,255,255,.12)}
.dispatch__timer .ring__label strong{color:var(--panel-fg)}
.dispatch__steps{display:grid;gap:.5rem;margin-top:1rem}
.dispatch__steps li{display:flex;align-items:center;gap:.5rem}
.clock__note{margin-top:.75rem;text-align:center}

/* --- toolkit -------------------------------------------------------------- */

.toolkit__head{margin-bottom:2.5rem}
.toolkit__head .lead{margin-top:1rem}
.toolkit{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:768px){.toolkit{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1200px){.toolkit{grid-template-columns:repeat(4,1fr)}}
.toolkit__card{display:flex;flex-direction:column}
.toolkit__title{margin:1rem 0 .5rem}
.toolkit__body{flex:1;font-size:.9375rem}
.toolkit__demo{margin-top:1.25rem}

.tk{background:var(--secondary);border-radius:var(--r-chip);padding:.875rem;font-size:.8125rem}
.tk--reviews li,.tk--props li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.3rem 0}
.stars{color:var(--warn);letter-spacing:.05em}
.tk__tag,.tk__chip{
  font-size:.6875rem;padding:.2rem .5rem;border-radius:var(--r-full);
  background:#fff;border:1px solid var(--border);color:var(--muted-foreground);white-space:nowrap;
}
.tk__chip--ok{background:rgba(0,120,109,.10);border-color:transparent;color:var(--ok)}
.tk__chip--warn{background:rgba(252,187,0,.18);border-color:transparent;color:#8a5c00}
.tk__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.3rem}
/* The cell keeps its own aspect so the grid holds its shape before the images
   arrive. Without it the card collapses and then jumps, which is the layout
   shift a lazy loaded image is otherwise guaranteed to cause. */
.tk__grid picture{display:block;aspect-ratio:4/3;border-radius:.4rem;overflow:hidden;background:var(--secondary)}
.tk__grid img{width:100%;height:100%;object-fit:cover;display:block}
.tk__cap{margin-top:.5rem;font-size:.6875rem;color:var(--muted-foreground)}
.tk--cats{display:flex;flex-wrap:wrap;gap:.3rem}
.tk--cats li{
  background:#fff;border:1px solid var(--border);border-radius:var(--r-full);
  padding:.25rem .55rem;font-size:.6875rem;color:var(--muted-foreground);
}

/* --- trades --------------------------------------------------------------- */

.trades{display:grid;gap:2.5rem;grid-template-columns:1fr;align-items:start}
@media(min-width:1024px){.trades{grid-template-columns:1.15fr .85fr;gap:4rem}}
.trades__copy .h2{margin:.5rem 0 1.25rem;max-width:18ch}
.trades__points{display:grid;gap:1rem;margin-top:2rem}
.trades__points li{display:flex;gap:.75rem;align-items:flex-start}
.trades__points li>span:last-child{display:flex;flex-direction:column;gap:.15rem}
.trades__cta{margin-top:2rem}

.bands{
  width:100%;border-collapse:collapse;
  background:var(--panel-chip);border:1px solid var(--panel-chip-border);
  border-radius:var(--r-card);overflow:hidden;
}
.bands th,.bands td{padding:.875rem 1.125rem;text-align:left;font-size:.9375rem}
.bands th{
  font-family:var(--font-mono);font-size:.6875rem;text-transform:uppercase;
  letter-spacing:.08em;color:var(--panel-fg-faint);font-weight:500;
}
.bands tbody tr+tr{border-top:1px solid var(--panel-hairline)}
.bands__rate{font-family:var(--font-display);font-weight:600;font-size:1.125rem;text-align:right}
.bands__note{margin-top:1rem;line-height:1.6}

/* --- pricing -------------------------------------------------------------- */

.pricing__head{margin-bottom:2.5rem}
.pricing__head .lead{margin-top:1rem}
.pricing{display:grid;gap:1rem;grid-template-columns:1fr;align-items:start}
@media(min-width:1024px){.pricing{grid-template-columns:repeat(3,1fr)}}
.plan{position:relative;display:flex;flex-direction:column}
.plan--hi{border:2px solid var(--foreground)}
@media(min-width:1024px){.plan--hi{transform:translateY(-8px)}}
.plan__flag{position:absolute;top:-.7rem;left:1.5rem;background:var(--foreground);color:#fff}
.plan__name{font-family:var(--font-display);font-weight:600;font-size:1.125rem}
.plan__price{
  font-family:var(--font-display);font-weight:600;font-size:2.25rem;
  letter-spacing:-.03em;margin-top:.5rem;line-height:1.1;
}
.plan__per{
  display:block;font-family:var(--font-body);font-size:.8125rem;font-weight:400;
  color:var(--muted-foreground);letter-spacing:normal;
}
.plan__blurb{margin-top:.5rem}
.plan__cta{margin-top:1.25rem}
.plan__fhead{margin-top:1.5rem}
.plan__features{display:grid;gap:.625rem;margin-top:.875rem;font-size:.875rem}
.plan__features li{display:flex;gap:.5rem;align-items:flex-start}
.plan__check{color:var(--ok);display:flex;flex:none;margin-top:.1rem}
.plan__strong{font-weight:600}
.pricing__foot{margin-top:1.5rem}

/* --- faq ------------------------------------------------------------------ */

.faq__head{margin-bottom:2rem}
.faq{max-width:46rem;margin-inline:auto;display:grid;gap:.5rem}
.faq__item{border:1px solid var(--border);border-radius:var(--r-card);overflow:hidden}
.faq__item[open]{background:var(--secondary)}
.faq__q{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.125rem 1.25rem;cursor:pointer;font-weight:500;list-style:none;min-height:44px;
}
.faq__q::-webkit-details-marker{display:none}
.faq__chev{display:flex;color:var(--muted-foreground);transition:transform .2s}
.faq__item[open] .faq__chev{transform:rotate(180deg)}
.faq__a{padding:0 1.25rem 1.25rem}
.faq__a .lead{font-size:.9375rem}

/* --- final cta ------------------------------------------------------------ */

.cta{padding-block:3.5rem}
@media(min-width:768px){.cta{padding-bottom:6.25rem}}
.cta__head{max-width:16ch;margin-inline:auto}
.cta__sub{margin-top:1.25rem}
.cta__row{margin-top:1.75rem}

/* ===========================================================================
   Service autocomplete.

   Anchored to the input's wrapper, so it lines up with the field rather than
   with the page. Sits above everything except the mobile sheet.
   =========================================================================== */

.ac__anchor{position:relative}

.ac{
  position:absolute;
  top:calc(100% + .375rem);
  left:0;right:0;
  z-index:60;
  max-height:min(24rem,60vh);
  overflow-y:auto;
  overscroll-behavior:contain;        /* stops the page scrolling behind it */
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r-card);
  box-shadow:var(--shadow-lg);
  padding:.375rem;
  -webkit-overflow-scrolling:touch;
}

.ac__item{
  display:flex;align-items:center;gap:.75rem;
  width:100%;
  padding:.5rem;
  border-radius:var(--r-base);
  text-align:left;
  min-height:56px;                    /* comfortably over the 44px floor */
  transition:background var(--dur-fast) ease;
}
.ac__item:hover,
.ac__item.is-active{background:var(--secondary)}
.ac__item.is-active{box-shadow:inset 0 0 0 1px var(--accent-line)}

.ac__thumb{
  display:block;flex:none;
  width:48px;height:36px;
  border-radius:.375rem;
  overflow:hidden;
  background:var(--secondary);
}
.ac__thumb img{width:100%;height:100%;object-fit:cover;display:block}

.ac__text{display:flex;flex-direction:column;gap:.125rem;min-width:0}
.ac__name{
  font-size:.9375rem;font-weight:500;color:var(--foreground);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ac__name mark{
  background:none;color:var(--accent-deep);font-weight:600;
}
.ac__meta{
  font-size:.75rem;color:var(--muted-foreground);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* The picker list on /start uses the same thumbnail, so choosing from the
   dropdown and choosing from the page look like the same decision. */
.picker__item{display:flex;align-items:center;gap:.75rem}
.picker__thumb{
  display:block;flex:none;width:48px;height:36px;
  border-radius:.375rem;overflow:hidden;background:var(--secondary);
}
.picker__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.picker__text{display:flex;flex-direction:column;gap:.125rem;min-width:0;flex:1}
