/* ==========================================================================
   home.css — Untapped Nails one-pager sections (Untapped Agents visual system):
   video hero, Sarah band, service card field, makes wall, dark visit band,
   closing CTA. Shared primitives live in global.css.
   ========================================================================== */

/* ----------------------------------------------------------------- Hero (static, no film yet; the copy is set like Auto / HVAC) */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: none;
}
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}
.hero__inner { width: 100%; }
.hero-box { width: 900px; max-width: 100%; margin: 0; text-align: left; }
.hero-box > * { animation: riseIn .9s var(--ease-out) both; }
.hero-title {
  text-shadow: 0 1px 4px rgba(11,10,26,.5);
  font-family: var(--font-body);
  font-weight: 700;
  color: #F5F5F7;
  text-transform: none;
  animation-delay: .1s;
}
.hero-line {
  display: block;
  /* Auto's headline setting: "Stop letting other salons" / "take your calls." / "Get an Untapped Agent." from 861px up. */
  font-size: clamp(2.2rem, 4.05vw, 3.7rem);
  line-height: 1.06;
  text-wrap: balance;
  letter-spacing: -.055em;
}
/* Phrases that never break across rows. */
.hero-nw { white-space: nowrap; }
@media (min-width: 861px){ .hero-nw-lg { white-space: nowrap; } }   /* desktop: the row break falls exactly before "take your calls." */
.hero-nw-m { white-space: nowrap; }                                    /* phones: "Stop letting" / "other salons", never an orphaned word */
/* Accent lead-in: "Get an" on desktop, "It's time for an" on phones. On phones only "Untapped Agent." glows. */
.hero-lead--phone { display: none; }
@media (max-width: 860px){
  .hero-lead--desktop { display: none; }
  .hero-lead--phone { display: inline; white-space: nowrap; color: #F5F5F7; text-shadow: 0 1px 4px rgba(11,10,26,.5); }
}
.hero-amp {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--accent-300);
  text-shadow: 0 0 24px rgba(158,82,97,.45);
  margin: .06em 0;
}
.hero-btn { margin-top: 2.5rem; animation-delay: .28s; }

@media (max-width: 860px){
  .hero { min-height: 0; padding-block: clamp(3rem, 12vw, 4.5rem); }
  /* Headline on phones, Auto's setting: five short rows ("Stop letting" / "other salons" / "take your calls." / "It's time for an" / "Untapped Agent."). */
  .hero-line { font-size: clamp(1.56rem, 8.2vw, 2.55rem); letter-spacing: -.065em; line-height: 1.03; }
  .hero-amp { font-size: clamp(1.2rem, 4.45vw, 1.7rem); }
  /* Auto's phone button: .btn is nowrap and this label is long — btn-lg ran past the gutter on 320–360 px screens.
     Smaller type + tighter padding bring it inside; max-width keeps it there. */
  .hero-btn { font-size: clamp(.8125rem, 3.6vw, .875rem); padding: .85rem clamp(.9rem, 4vw, 1.25rem); max-width: 100%; margin-top: 1.1rem; }
  .hero-btn .ic { width: 15px; height: 15px; }
}

/* ------------------------------------------------- Sarah — animated call demo */
.section--sarah { padding-top: clamp(3.25rem, 6vw, 5.5rem); }
.section--sarah .section-head { margin-bottom: 0; }
.sarah-demo {
  width: 100%;
  max-width: 1100px;
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0;
}
.sarah-demo iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* How-steps — quiet ghost numbers */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: clamp(2.2rem, 4vw, 3.25rem); }
@media (max-width: 760px){ .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; padding: 0; background: none; border: none; border-radius: 0; }
.how-steps .how-step:not(:last-child) { border-right: .5px solid rgba(0,0,0,.05); padding-right: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 760px){
  .how-steps .how-step:not(:last-child) { border-right: none; border-bottom: .5px solid rgba(0,0,0,.05); padding-right: 0; padding-bottom: 1.5rem; }
}
.how-step__n {
  width: auto; height: auto; border-radius: 0; background: none; color: var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: 2.6rem; line-height: 1;
  display: block; opacity: .15; margin-bottom: .9rem; place-items: unset;
}
.how-step h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .4rem; }
.how-step p { color: var(--ink-2); font-size: .9rem; line-height: 1.65; }
.how-step__arrow { display: none; }

.sarah-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.sarah-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }

/* ------------------------------------------------- Services band (grey field, glass cards)
   One anatomy for every card: head (icon + title) → price line → tier list (label ···· price) → note.
   Cards share equal heights per row. */
.svc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 1rem; align-items: stretch; }
.svc-tile {
  background: rgba(255,255,255,.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
}
.svc-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.04); }
@media (max-width: 860px){ .svc-tile { border-radius: 18px; } }

/* Head: icon beside the title, one fixed-height slot */
.svc-tile__head { display: grid; grid-template-columns: 1fr; justify-items: start; align-items: start; row-gap: .85rem; }   /* 2026-09-30: icon ABOVE the title (the HVAC / Dental anatomy), larger */
.svc-tile__icon { width: 56px; height: 56px; display: block; color: var(--accent); }
.svc-tile__icon img { width: 56px; height: 56px; object-fit: contain; display: block; }
.svc-tile__icon svg { width: 36px; height: 36px; display: block; }   /* nails: inline line glyphs, the brand accent */
.svc-tile h3 { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; color: var(--ink-hd); }

/* Price line: small caps label + the number, one baseline */
.svc-tile__price {
  margin-top: .95rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4);
}
.svc-tile__price b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--ink-hd); font-variant-numeric: tabular-nums; }

/* Tier list: label, dotted leader, price — a price list, not two far-apart columns */
.svc-tile__tiers { list-style: none; padding: 0; margin: .7rem 0 0; }
.svc-tile__tiers li { display: flex; align-items: baseline; gap: .45rem; padding: .38rem 0; font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
.svc-tile__tiers li span { order: 0; min-width: 0; }
.svc-tile__tiers li::after { content: ""; order: 1; flex: 1 1 14px; min-width: 14px; border-bottom: 1px dotted rgba(0,0,0,.22); transform: translateY(-.35em); }
.svc-tile__tiers li b { order: 2; font-weight: 600; color: var(--ink-hd); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Note */
.svc-tile__note { margin-top: .8rem; font-size: .8rem; line-height: 1.55; color: var(--ink-3); }
.svc-tile p b { color: var(--ink-hd); font-weight: 700; }

/* Phones: one column, the section and each card centred; the price list stays a compact block */
@media (max-width: 560px){
  .svc-tiles { grid-template-columns: 1fr; }
  #services .section-head { margin-inline: auto; text-align: center; }
  #services .section-head p { margin-inline: auto; }
  .svc-tile { align-items: center; text-align: center; padding: 1.5rem 1.35rem 1.4rem; }
  .svc-tile__head { grid-template-columns: 1fr; justify-items: center; row-gap: .7rem; }
  .svc-tile__price { justify-content: center; }
  .svc-tile__tiers { width: 100%; max-width: 300px; }
  .svc-tile__note { max-width: 32ch; }
}

.svc-more { text-align: center; margin-top: clamp(2rem, 3.6vw, 3rem); position: relative; }
.svc-more__label { font-weight: 600; font-size: .95rem; color: var(--ink-hd); margin-bottom: .9rem; }
.svc-more .chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.svc-more .tag-chip { background: rgba(255,255,255,.75); border-color: rgba(0,0,0,.06); color: var(--ink-2); font-weight: 500; }
.svc-more__hint { margin-top: 1rem; color: var(--ink-3); font-size: .88rem; max-width: 62ch; margin-inline: auto; }

/* ------------------------------------------------- Makes wall */
.makes { background: var(--bg); border-top: .5px solid rgba(0,0,0,.04); text-align: center; }
.makes-title {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; letter-spacing: -.025em;
  color: var(--ink-hd);
  max-width: 760px; margin: 0 auto;
}
.makes-row {
  list-style: none; padding: 0;
  margin: 1.9rem auto 0; max-width: 1020px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(18px, 2.4vw, 34px) clamp(24px, 3.4vw, 48px);
}
.makes-row:first-of-type { margin-top: 4rem; }
.makes-row li { display: inline-flex; align-items: center; }
.makes-row img {
  height: clamp(24px, 1.2rem + 1.2vw, 38px); width: auto; max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .35;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.makes-row li:hover img { opacity: .85; filter: grayscale(0); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce){
  .makes-row li:hover img { transform: none; }
}
@media (max-width: 640px){
  .makes-row { gap: 1.1rem 1.5rem; }
  .makes-row img { height: clamp(22px, 6vw, 30px); opacity: .4; }
}
.many-more { margin-top: 3.5rem; display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); }
.many-more .amp { font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--accent); }
.many-more .mm {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--ink-3);
}

/* ------------------------------------------------- Visit band (dark CTA) */
.visit-band {
  background: var(--dark-cta);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.visit-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(158,82,97,.09), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(158,82,97,.04), transparent 45%);
}
.visit-band .section-head h2 { color: #F5F5F7; }
.visit-band .section-head p { color: rgba(255,255,255,.55); }
.visit-band .form-card { border-color: rgba(255,255,255,.06); box-shadow: var(--shadow-pop); }
.visit-side { display: grid; gap: 1.1rem; align-content: start; }
.form-layout--visit { grid-template-columns: 1.15fr .95fr; }
@media (max-width: 880px) { .form-layout--visit { grid-template-columns: 1fr; } }
.visit-band .info-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.visit-band .info-card h3 { color: #F5F5F7; }
.visit-band .info-card h3 .ic { color: var(--accent-300); }
.visit-band .hours-table th, .visit-band .hours-table td:first-child { color: rgba(255,255,255,.55); }
.visit-band .hours-table td { color: rgba(255,255,255,.85); }
.visit-band .hours-table b { color: #fff; }
.visit-band .hours-table tr + tr th, .visit-band .hours-table tr + tr td { border-top: 1px solid rgba(255,255,255,.06); }
.visit-band .hours-table .accent-text { color: var(--accent-300); }
.visit-band .open-pill span { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.14); }
.visit-band .open-pill span.is-open { background: rgba(26,138,90,.15); color: #6FDCA5; border-color: rgba(111,220,165,.3); }
.visit-band .map-card { border-color: rgba(255,255,255,.1); }

/* ------------------------------------------------- CTA closer (light band) */
.cta-closer {
  background: var(--bg-inset);
  border-top: .5px solid rgba(0,0,0,.04);
  color: var(--ink-2); text-align: center; position: relative; overflow: hidden;
}
.cta-closer h2 { color: var(--ink-hd); font-size: var(--step-3); margin: .7rem 0 1rem; }
.cta-closer .lede { max-width: 52ch; margin-inline: auto; color: var(--ink-2); }
.cta-closer p { max-width: 54ch; margin-inline: auto; }
.cta-closer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

/* Aurora effect on the Get-your-own-agent band: keep this section's own
   layout (left-aligned, .section rhythm) — the aurora-cta class only
   brings the canvas/stars/overlays; content rides above them. */
.visit-band.aurora-cta { text-align: left; padding: 0; padding-block: clamp(4rem, 8vw, 7.5rem); }
.visit-band.aurora-cta > .container { position: relative; z-index: 10; }
.visit-band.aurora-cta .section-head p { margin: .8rem 0 0; max-width: 56ch; }
/* Same treatment as the main site's "Always answering." line */
.hero-line--accent { color: #fff; text-shadow: 0 0 8px #ffffff; margin-top: .08em; }
.svc-tile__rule { margin-top: .8rem; border-top: .5px solid rgba(0,0,0,.05); }
