/* Hero "product-first" visual: phone (dark owner calendar, HTML/CSS) + SMS reminder card
   next to the call card. Replaces the stock salon photo on the 4 home pages. No images, no inline
   styles (CSP style-src 'self'). Markup: scripts/hero-product-visual.mjs. Linked after site.css. */

/* The visual is no longer an absolute photo layer; it is a normal grid cell that holds three
   absolutely-placed cards (desktop) or a column (<=960px). */
.hero-v2.hero-product {
  /* Wide screens: the visual keeps its designed 640px column on the shared rail. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  /* KAN-2057 layout rail: full-bleed background, content on the shared rail. */
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--content-rail, 72rem)) / 2));
}
.hero-v2.hero-product::before {
  left: 0; width: 100%;
  background: radial-gradient(ellipse at 72% 50%, rgba(139, 92, 246, .20), transparent 60%);
}
body.light-mode .hero-v2.hero-product::before {
  background:
    radial-gradient(ellipse at 72% 42%, rgba(200, 99, 61, .14), transparent 58%),
    radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, .55), transparent 48%);
}
.hero-v2.hero-product .hero-copy { max-width: 40rem; padding-left: 0; }
.hero-v2.hero-product .hero-visual.has-call-card {
  position: relative; inset: auto; left: auto; right: auto;
  height: auto; margin: 0;
  z-index: 4; min-height: 640px; justify-self: center; width: min(640px, 100%);
}
.hero-v2.hero-product .hero-visual.has-call-card::after { display: none; }
.hero-product .hero-call-card {
  left: 0; top: 4px; bottom: auto; width: min(372px, 62%);
  z-index: 3;
  background: rgba(14, 13, 22, .88);
}
body.light-mode .hero-product .hero-call-card {
  background: #fff;
  border-color: rgba(58, 36, 51, .12);
  box-shadow:
    0 22px 48px rgba(58, 36, 51, .14),
    0 2px 0 rgba(255, 255, 255, .9) inset,
    0 0 0 1px rgba(200, 99, 61, .08);
}

/* ---------------- Phone ---------------- */
.hero-phone {
  position: absolute; z-index: 2; right: 0; top: 0; width: 280px;
  transform: rotate(2.5deg);
  pointer-events: none;
}
.hero-phone-frame {
  padding: 8px; border-radius: 38px;
  background: linear-gradient(160deg, #2b2840, #14121f);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .6), 0 0 90px rgba(139, 92, 246, .28);
}
body.light-mode .hero-phone-frame {
  border-color: rgba(58, 36, 51, .18);
  box-shadow:
    0 28px 64px rgba(58, 36, 51, .22),
    0 0 0 1px rgba(58, 36, 51, .35),
    0 0 56px rgba(200, 99, 61, .18);
}

/* Screen: all sizes are in em so the whole UI scales with one font-size (10px at 280px wide). */
.hpc {
  --hpc-bg: #0f0e18;
  --hpc-card: #1a1829;
  --hpc-line: rgba(255, 255, 255, .08);
  --hpc-text: #f4f2fb;
  --hpc-mute: #9a96ad;
  --hpc-purple: #8b5cf6;
  font-size: 10px; line-height: 1.25;
  display: flex; flex-direction: column;
  aspect-ratio: 471 / 1024;
  overflow: hidden;
  border-radius: 3em;
  background: var(--hpc-bg);
  color: var(--hpc-text);
  font-family: var(--sans);
  text-align: left;
}
.hpc-status { display: flex; align-items: center; justify-content: space-between; padding: 1em 1.8em .4em; font-size: 1.05em; font-weight: 600; }
.hpc-island { width: 7em; height: 1.9em; border-radius: 99px; background: #000; }
.hpc-signal { width: 2.2em; height: 1.05em; border-radius: .3em; background: linear-gradient(90deg, var(--hpc-text) 0 62%, rgba(255, 255, 255, .3) 62%); }
.hpc-head { display: flex; align-items: baseline; justify-content: space-between; padding: .7em 1.5em .3em; }
.hpc-title { font-size: 1.9em; font-weight: 700; letter-spacing: -.01em; }
.hpc-biz { font-size: 1.05em; color: var(--hpc-mute); }
.hpc-date { display: flex; align-items: center; justify-content: space-between; padding: .5em 1.5em .7em; }
.hpc-day-label { font-size: 1.3em; font-weight: 600; }
.hpc-today { padding: .35em .9em; border-radius: 99px; border: 1px solid rgba(139, 92, 246, .55); color: #d9c6ff; font-size: 1em; font-weight: 600; }
.hpc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; padding: 0 1.1em .9em; }
.hpc-day { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .55em 0 .6em; border-radius: 1.1em; }
.hpc-dow { font-size: .95em; color: var(--hpc-mute); }
.hpc-num { font-size: 1.3em; font-weight: 600; }
.hpc-day.is-sel { background: var(--hpc-purple); box-shadow: 0 .4em 1.4em rgba(139, 92, 246, .45); }
.hpc-day.is-sel .hpc-dow { color: #efe6ff; }
.hpc-chips { display: flex; gap: .6em; padding: 0 1.5em .9em; }
.hpc-chip { padding: .45em 1em; border-radius: 99px; background: var(--hpc-card); color: var(--hpc-mute); font-size: 1.05em; font-weight: 500; white-space: nowrap; }
.hpc-chip.is-on { background: rgba(139, 92, 246, .22); color: #e4d6ff; }
.hpc-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .7em; padding: 0 1.1em; overflow: hidden; }
.hpc-appt { display: flex; align-items: flex-start; gap: .9em; padding: .85em .9em; border-radius: 1.2em; background: var(--hpc-card); border: 1px solid transparent; }
.hpc-time { flex: none; width: 5.2em; font-size: 1.05em; font-weight: 600; color: var(--hpc-mute); font-variant-numeric: tabular-nums; }
.hpc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25em; }
.hpc-svc { font-size: 1.3em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpc-who { font-size: 1.05em; color: var(--hpc-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpc-appt.is-booked { position: relative; background: linear-gradient(135deg, rgba(139, 92, 246, .42), rgba(139, 92, 246, .22)); border-color: rgba(167, 139, 250, .75); box-shadow: 0 .6em 2em rgba(139, 92, 246, .35); }
.hpc-appt.is-booked .hpc-time { color: #efe6ff; }
.hpc-appt.is-booked .hpc-who { color: #d9c6ff; }
.hpc-via { font-size: .95em; color: #c4b0ff; }
.hpc-appt.is-booked .hpc-svc { white-space: normal; }
.hpc-badge { align-self: flex-start; margin-top: .45em; padding: .3em .75em; border-radius: 99px; background: #7ee2b0; color: #062a1a; font-size: .95em; font-weight: 700; }
.hpc-tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: .8em .4em 1.4em; margin-top: .6em; border-top: 1px solid var(--hpc-line); background: rgba(255, 255, 255, .02); }
.hpc-tab { display: flex; flex-direction: column; align-items: center; gap: .35em; min-width: 0; font-size: .85em; color: var(--hpc-mute); }
.hpc-tab > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpc-tab svg { width: 2.2em; height: 2.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hpc-tab.is-on { color: #c4b0ff; }

/* ---------------- SMS reminder ---------------- */
.hero-sms {
  position: absolute; z-index: 5; left: 84px; bottom: 6px;
  width: 296px; padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(20, 18, 32, .94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #faf9ff; font-family: var(--sans); text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.hero-sms-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.hero-sms-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(139, 92, 246, .28); color: #d9c6ff; flex: none; font: 700 15px/1 Georgia, 'Times New Roman', serif; }
.hero-sms-title { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; }
.hero-sms-time { font-size: 11px; color: #a9a5bd; white-space: nowrap; }
.hero-sms-bubble { margin: 0; padding: 9px 12px; font-size: 13px; line-height: 1.4; border-radius: 16px; max-width: 88%; }
.hero-sms-out { background: rgba(255, 255, 255, .10); border-bottom-left-radius: 5px; align-self: flex-start; }
.hero-sms-in { background: #8b5cf6; color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 600; padding: 7px 16px; }
.hero-sms-status { margin: 2px 0 0; font-size: 11.5px; line-height: 1.35; color: #7ee2b0; font-weight: 500; }

body.light-mode .hero-sms {
  background: #fff;
  border-color: rgba(58, 36, 51, .12);
  box-shadow:
    0 20px 44px rgba(58, 36, 51, .14),
    0 2px 0 rgba(255, 255, 255, .9) inset,
    0 0 0 1px rgba(200, 99, 61, .08);
  color: var(--text);
}
body.light-mode .hero-sms-ico { background: #C8633D; color: #fff; }
body.light-mode .hero-sms-time { color: var(--muted); }
body.light-mode .hero-sms-out { background: rgba(58, 36, 51, .06); border: 1px solid rgba(58, 36, 51, .06); }
body.light-mode .hero-sms-in { background: #C8633D; }
body.light-mode .hero-sms-status { color: #0b7a45; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1366px) and (min-width: 961px) {
  .hero-v2.hero-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero-v2.hero-product .hero-copy { max-width: 36rem; }
  .hero-v2.hero-product .hero-visual.has-call-card { min-height: 600px; }
  .hero-phone { width: 240px; }
  .hpc { font-size: 8.57px; }
  .hero-sms { width: 268px; left: 60px; }
  .hero-product .hero-call-card { left: 0; width: min(330px, 64%); }
}
@media (max-width: 960px) {
  .hero-v2.hero-product { grid-template-columns: 1fr; }
  .hero-v2.hero-product .hero-visual.has-call-card {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    min-height: 0; width: 100%; margin: .5rem 0 0; padding: 0 0 1.5rem;
  }
  .hero-product .hero-phone,
  .hero-product .hero-sms,
  .hero-product .hero-call-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .hero-v2.hero-product .hero-call-card { order: 1; width: 100%; max-width: 440px; margin: 0; }
  .hero-product .hero-sms { order: 2; width: 100%; max-width: 440px; }
  .hero-product .hero-phone { order: 3; width: 240px; transform: none; margin-top: 4px; }
  .hpc { font-size: 8.57px; }
}
