/* ── Variables ─────────────────────────────────────────────── */
:root {
  --hp-primary: #6c47ff;
  --hp-primary-dark: #5535e0;
  --hp-text: #1a1a2e;
  --hp-text-soft: #64748b;
  --hp-bg: #ffffff;
  --hp-surface: #f8fafc;
  --hp-border: #e2e8f0;
  --hp-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { color: var(--hp-text); background: var(--hp-bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.hp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Container ─────────────────────────────────────────────── */
.hp-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ───────────────────────────────────────────────────── */
.hp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 2rem; height: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hp-border);
}
.hp-brand { font-size: 1.25rem; font-weight: 700; color: var(--hp-primary); flex-shrink: 0; }
.hp-nav-links { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.hp-nav-link { color: var(--hp-text-soft); font-size: .9rem; padding: .4rem .6rem; border-radius: 6px; transition: color .15s; }
.hp-nav-link:hover { color: var(--hp-primary); }
.hp-hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* Pulsante toggle tema chiaro/scuro */
.hp-theme-toggle {
  background: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
  color: #64748b;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.hp-theme-toggle:hover { background: #eef2ff; border-color: #c7d2fe; }
.hp-theme-toggle .icon-sun { display: none; }
.hp-theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .hp-theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .hp-theme-toggle .icon-moon { display: none; }
@media (max-width: 768px) {
  .hp-hamburger { display: block; }
  .hp-nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--hp-border); padding: 1rem; gap: .5rem; }
  .hp-nav-links.open { display: flex; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: 8px; font-size: .9rem; font-weight: 500;
  cursor: pointer; border: none; transition: all .15s; white-space: nowrap; text-decoration: none;
}
.hp-btn-primary { background: var(--hp-primary); color: #fff; }
.hp-btn-primary:hover { background: var(--hp-primary-dark); }
.hp-btn-accent { background: #0f172a; color: #fff; }
.hp-btn-accent:hover { background: #1e293b; color: #fff; }
.hp-btn-nav-strong { box-shadow: 0 10px 22px rgba(79, 70, 229, .18); }
.hp-btn-ghost { background: transparent; color: var(--hp-text-soft); border: 1px solid var(--hp-border); }
.hp-btn-ghost:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.hp-btn-outline { background: transparent; color: var(--hp-primary); border: 2px solid var(--hp-primary); }
.hp-btn-outline:hover { background: var(--hp-primary); color: #fff; }
.hp-btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.hp-btn-outline-white:hover { background: rgba(255,255,255,.15); }
.hp-btn-white { background: #fff; color: var(--hp-primary); font-weight: 600; }
.hp-btn-white:hover { background: #f1f5ff; }
.hp-btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.hp-btn-full { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────── */
.hp-hero {
  display: flex; align-items: center; gap: 3rem;
  min-height: 100vh; padding: 7rem 2rem 4rem;
  max-width: 1140px; margin: 0 auto;
}
.hp-hero-content { flex: 1; max-width: 560px; }
.hp-badge {
  display: inline-block; background: #ede9fe; color: var(--hp-primary);
  padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  margin-bottom: 1.25rem;
}
.hp-hero-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hp-accent { color: var(--hp-primary); }
.hp-hero-sub { font-size: 1.1rem; color: var(--hp-text-soft); margin-bottom: 2rem; line-height: 1.7; }
.hp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hp-hero-note { margin-top: 1rem; font-size: .82rem; color: var(--hp-text-soft); }
.hp-hero-visual { flex: 1; display: flex; justify-content: center; }

/* ── Mockup ────────────────────────────────────────────────── */
.hp-mockup {
  background: #fff; border: 1px solid var(--hp-border); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(108,71,255,.12); padding: 1.25rem;
  width: 100%; max-width: 340px; font-size: .9rem;
}
.hp-mockup-header { display: flex; gap: 6px; margin-bottom: 1rem; }
.hp-mockup-header span { width: 12px; height: 12px; border-radius: 50%; background: #e2e8f0; }
.hp-mockup-header span:nth-child(1) { background: #fc625d; }
.hp-mockup-header span:nth-child(2) { background: #fdbc40; }
.hp-mockup-header span:nth-child(3) { background: #34c749; }
.hp-mockup-title { font-weight: 600; font-size: .85rem; color: var(--hp-text-soft); margin-bottom: .75rem; }
.hp-mockup-appt { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 8px; margin-bottom: .5rem; background: #f8fafc; }
.hp-mockup-appt.pending { background: #fffbeb; }
.hp-mockup-footer { text-align: center; font-size: .78rem; color: var(--hp-text-soft); margin-top: .5rem; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hp-dot.green { background: #22c55e; }
.hp-dot.blue { background: #3b82f6; }
.hp-dot.orange { background: #f59e0b; }
@media (max-width: 900px) { .hp-hero { flex-direction: column; text-align: center; } .hp-hero-actions { justify-content: center; } .hp-hero-visual { display: none; } }

/* ── Sections ──────────────────────────────────────────────── */
.hp-section { padding: 5rem 2rem; }
.hp-section-light { background: var(--hp-surface); }
.hp-section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: .75rem; }
.hp-section-sub { text-align: center; color: var(--hp-text-soft); margin-bottom: 3rem; }

/* ── Categories ────────────────────────────────────────────── */
.hp-categories {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem; max-width: 900px; margin: 0 auto;
}
.hp-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.25rem .75rem; background: #fff; border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius); font-size: .88rem; font-weight: 500;
  transition: all .15s; cursor: pointer; text-align: center;
}
.hp-cat-card:hover { border-color: var(--hp-primary); color: var(--hp-primary); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(108,71,255,.1); }
.hp-cat-icon { font-size: 1.75rem; }

/* ── How it works ──────────────────────────────────────────── */
.hp-steps { display: flex; align-items: flex-start; gap: 1rem; max-width: 800px; margin: 0 auto; }
.hp-step { flex: 1; text-align: center; }
.hp-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--hp-primary); color: #fff; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.hp-step h3 { font-weight: 600; margin-bottom: .5rem; }
.hp-step p { color: var(--hp-text-soft); font-size: .9rem; }
.hp-step-arrow { font-size: 1.5rem; color: var(--hp-border); padding-top: 1.25rem; }
@media (max-width: 600px) { .hp-steps { flex-direction: column; align-items: center; } .hp-step-arrow { transform: rotate(90deg); } }

/* ── Features ──────────────────────────────────────────────── */
.hp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.hp-feat { background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-radius); padding: 1.5rem; }
.hp-feat-icon { font-size: 2rem; margin-bottom: .75rem; }
.hp-feat h4 { font-weight: 600; margin-bottom: .4rem; }
.hp-feat p { color: var(--hp-text-soft); font-size: .9rem; }

/* ── Pricing ───────────────────────────────────────────────── */
.hp-promo-banner { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 2rem; text-align: center; color: #92400e; }
.hp-pricing { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.hp-plan { flex: 1; min-width: 220px; max-width: 280px; border: 2px solid var(--hp-border); border-radius: 16px; padding: 2rem 1.5rem; position: relative; }
.hp-plan-featured { border-color: var(--hp-primary); box-shadow: 0 8px 32px rgba(108,71,255,.15); }
.hp-plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--hp-primary); color: #fff; padding: .25rem 1rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.hp-plan-name { font-weight: 600; color: var(--hp-text-soft); margin-bottom: .5rem; }
.hp-plan-price { font-size: 2.25rem; font-weight: 800; margin-bottom: .25rem; }
.hp-plan-price span { font-size: 1rem; font-weight: 400; color: var(--hp-text-soft); }
.hp-plan-saving { font-size: .82rem; color: #16a34a; font-weight: 500; margin-bottom: 1rem; }
.hp-plan-features { list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; color: var(--hp-text-soft); }

/* ── CTA ───────────────────────────────────────────────────── */
.hp-cta { background: linear-gradient(135deg, var(--hp-primary), #a855f7); color: #fff; padding: 5rem 2rem; }
.hp-cta h2 { font-size: 2rem; font-weight: 700; }
.hp-cta p { opacity: .85; margin-top: .5rem; }

/* ── Footer ────────────────────────────────────────────────── */
.hp-footer { background: #0f172a; color: #94a3b8; padding: 3rem 2rem 1rem; }
.hp-footer-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2rem; max-width: 1140px; margin: 0 auto 2rem; }
.hp-footer strong { color: #fff; display: block; margin-bottom: .75rem; }
.hp-footer nav { display: flex; flex-direction: column; gap: .4rem; }
.hp-footer nav a { color: #94a3b8; font-size: .88rem; transition: color .15s; }
.hp-footer nav a:hover { color: #fff; }
.hp-footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; text-align: center; font-size: .82rem; max-width: 1140px; margin: 0 auto; }

/* ── Forms (register) ──────────────────────────────────────── */
.hp-form-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 5rem 1.5rem 3rem; background: var(--hp-surface); }
.hp-form-card { background: #fff; border: 1px solid var(--hp-border); border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 640px; }
.hp-form-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .4rem; }
.hp-form-sub { color: var(--hp-text-soft); margin-bottom: 2rem; }
.hp-fieldset { border: 1px solid var(--hp-border); border-radius: var(--hp-radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.hp-fieldset legend { font-weight: 600; padding: 0 .5rem; color: var(--hp-text-soft); font-size: .9rem; }
.hp-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.hp-field:last-child { margin-bottom: 0; }
.hp-field label { font-size: .85rem; font-weight: 500; color: var(--hp-text-soft); }
.hp-field input, .hp-field select, .hp-field textarea {
  border: 1.5px solid var(--hp-border); border-radius: 8px; padding: .65rem .85rem;
  font-size: .95rem; font-family: inherit; width: 100%;
  transition: border-color .15s; background: #fff;
}
.hp-field input:focus, .hp-field select:focus, .hp-field textarea:focus {
  outline: none; border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(108,71,255,.1);
}
.hp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 500px) { .hp-field-row { grid-template-columns: 1fr; } }
.hp-input-prefix { display: flex; }
.hp-input-prefix span { background: var(--hp-surface); border: 1.5px solid var(--hp-border); border-right: none; border-radius: 8px 0 0 8px; padding: .65rem .85rem; font-size: .85rem; color: var(--hp-text-soft); white-space: nowrap; }
.hp-input-prefix input { border-radius: 0 8px 8px 0; }
.hp-err { color: #dc2626; font-size: .8rem; }

/* ── Alerts ────────────────────────────────────────────────── */
.hp-alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .9rem; }
.hp-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.hp-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.hp-alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── Search ────────────────────────────────────────────────── */
.hp-search-form { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hp-search-input { flex: 1; min-width: 200px; border: 1.5px solid var(--hp-border); border-radius: 8px; padding: .7rem 1rem; font-size: .95rem; font-family: inherit; }
.hp-search-input:focus { outline: none; border-color: var(--hp-primary); }
.hp-search-select { border: 1.5px solid var(--hp-border); border-radius: 8px; padding: .7rem 1rem; font-size: .9rem; background: #fff; }

/* ── Business grid ─────────────────────────────────────────── */
.hp-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.hp-biz-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-radius); padding: 1rem 1.25rem; transition: all .15s; }
.hp-biz-card:hover { border-color: var(--hp-primary); box-shadow: 0 4px 16px rgba(108,71,255,.1); transform: translateY(-1px); }
.hp-biz-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--hp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.hp-biz-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hp-biz-avatar.sm { width: 40px; height: 40px; font-size: 1rem; }
.hp-biz-info { flex: 1; min-width: 0; }
.hp-biz-name { font-weight: 600; margin-bottom: .15rem; }
.hp-biz-addr { font-size: .82rem; color: var(--hp-text-soft); }
.hp-biz-desc { font-size: .82rem; color: var(--hp-text-soft); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-biz-cta { font-size: .85rem; color: var(--hp-primary); font-weight: 500; flex-shrink: 0; }

/* ── Customer dashboard ────────────────────────────────────── */
.hp-dashboard-section { background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-radius); padding: 1.5rem; }
.hp-dashboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.hp-dashboard-head h2 { font-size: 1.1rem; font-weight: 600; }
.hp-fav-grid { display: flex; flex-direction: column; gap: .75rem; }
.hp-fav-card { display: flex; align-items: center; gap: 1rem; padding: .75rem; background: var(--hp-surface); border-radius: 8px; }
.hp-appt-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.hp-appt-row { display: flex; align-items: center; justify-content: space-between; padding: .75rem; background: var(--hp-surface); border-radius: 8px; }
.hp-empty-small { color: var(--hp-text-soft); font-size: .9rem; padding: 1rem 0; }
.hp-pagination { display: flex; gap: .75rem; justify-content: center; margin-top: 2rem; align-items: center; }
.hp-empty { text-align: center; padding: 3rem; color: var(--hp-text-soft); }

/* ── Badge compatibility ───────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 500; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.info { background: #dbeafe; color: #1d4ed8; }
.badge.warn { background: #fef9c3; color: #854d0e; }
.badge.danger { background: #fee2e2; color: #991b1b; }

/* ── Modern homepage redesign ─────────────────────────────── */
:root {
  --hp-primary: #6d5dfc;
  --hp-primary-dark: #4f46e5;
  --hp-primary-soft: #eef2ff;
  --hp-secondary: #06b6d4;
  --hp-ink: #0f172a;
  --hp-text: #111827;
  --hp-text-soft: #64748b;
  --hp-bg: #ffffff;
  --hp-surface: #f6f8ff;
  --hp-card: rgba(255, 255, 255, .86);
  --hp-border: #e5e7eb;
  --hp-border-strong: #c7d2fe;
  --hp-shadow-sm: 0 10px 30px rgba(15, 23, 42, .07);
  --hp-shadow-md: 0 24px 70px rgba(79, 70, 229, .18);
  --hp-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(109, 93, 252, .14), transparent 32rem),
    radial-gradient(circle at 96% 16%, rgba(6, 182, 212, .12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 42%, #f7f9ff 100%);
  color: var(--hp-text);
  -webkit-font-smoothing: antialiased;
}

.hp-container { width: min(1140px, calc(100% - 2rem)); padding: 0; }

/* Navigation */
.hp-nav {
  top: 14px; left: 50%; right: auto; transform: translateX(-50%);
  width: min(1160px, calc(100% - 2rem)); height: 72px;
  padding: .7rem .85rem .7rem 1rem;
  border: 1px solid rgba(226, 232, 240, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  backdrop-filter: blur(18px);
}
.hp-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--hp-ink); letter-spacing: -.02em;
}
.hp-brand-mark {
  width: 38px; height: 38px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary));
  color: #fff; font-weight: 900; box-shadow: 0 12px 26px rgba(79, 70, 229, .28);
}
.hp-brand-logo {
  width: 178px; height: 56px; border-radius: 0;
  display: block; object-fit: contain; padding: 0;
  background: transparent; border: 0; box-shadow: none;
  flex: 0 0 auto;
}
.hp-brand-mark-sm { width: 30px; height: 30px; border-radius: 10px; font-size: .85rem; vertical-align: middle; }
.hp-brand-logo-sm { width: 156px; height: 50px; vertical-align: middle; }
.hp-footer .hp-brand-logo { background: #fff; border-radius: 14px; padding: 4px; }
.hp-nav-links { gap: .35rem; }
.hp-nav-link {
  color: #475569; font-weight: 600; padding: .62rem .85rem; border-radius: 999px;
}
.hp-nav-link:hover { background: var(--hp-primary-soft); color: var(--hp-primary-dark); }
.hp-hamburger {
  width: 44px; height: 44px; border-radius: 50%; background: var(--hp-primary-soft);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.hp-hamburger span { width: 18px; height: 2px; border-radius: 999px; background: var(--hp-primary-dark); display: block; }

/* Buttons */
.hp-btn {
  min-height: 42px; border-radius: 999px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: none; transform: translateY(0);
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-primary {
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-dark));
  box-shadow: 0 14px 28px rgba(79, 70, 229, .24);
}
.hp-btn-primary:hover { background: linear-gradient(135deg, #7c6dff, #4338ca); }
.hp-btn-accent {
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .20);
}
.hp-btn-accent:hover { background: linear-gradient(135deg, #1e293b, #475569); color: #fff; }
.hp-btn-ghost { background: rgba(248, 250, 252, .8); border-color: transparent; color: #475569; }
.hp-btn-ghost:hover { background: #eef2ff; border-color: #c7d2fe; color: var(--hp-primary-dark); }
.hp-btn-outline { border: 1.5px solid #c7d2fe; background: #fff; color: var(--hp-primary-dark); }
.hp-btn-outline:hover { background: var(--hp-primary-soft); border-color: var(--hp-primary); color: var(--hp-primary-dark); }
.hp-btn-lg { min-height: 52px; padding: .9rem 1.45rem; }

/* Hero */
.hp-hero {
  position: relative; isolation: isolate;
  min-height: auto; padding: 9rem 2rem 6rem; gap: 4rem;
}
.hp-hero::before,
.hp-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 999px; filter: blur(4px);
}
.hp-hero::before { width: 18rem; height: 18rem; right: 6%; top: 18%; background: rgba(109, 93, 252, .12); }
.hp-hero::after { width: 12rem; height: 12rem; left: 2%; bottom: 12%; background: rgba(6, 182, 212, .12); }
.hp-hero-content { max-width: 620px; }
.hp-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .85rem; border: 1px solid rgba(199, 210, 254, .9);
  background: rgba(238, 242, 255, .86); color: #4338ca;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .08);
}
.hp-badge-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, .14); }
.hp-hero-title {
  max-width: 13.6ch; font-size: clamp(2.6rem, 7vw, 5.3rem); line-height: 1.08;
  letter-spacing: -.052em; color: var(--hp-ink); margin-bottom: 1.35rem;
  padding: .12em .08em .12em 0;
}
.hp-accent {
  background: linear-gradient(135deg, var(--hp-primary), #9333ea 48%, var(--hp-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hp-hero-sub { max-width: 58ch; font-size: clamp(1rem, 2vw, 1.18rem); color: #475569; }
.hp-hero-note { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; }
.hp-hero-note::before { content: "✓"; color: #16a34a; font-weight: 900; }
.hp-hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem;
  max-width: 520px; margin-top: 1.6rem;
}
.hp-hero-stats div {
  padding: 1rem; border: 1px solid rgba(226, 232, 240, .85); border-radius: 18px;
  background: rgba(255, 255, 255, .72); box-shadow: var(--hp-shadow-sm);
}
.hp-hero-stats strong { display: block; font-size: 1.2rem; color: var(--hp-ink); line-height: 1; }
.hp-hero-stats span { display: block; margin-top: .35rem; color: var(--hp-text-soft); font-size: .78rem; line-height: 1.25; }

/* Dashboard mockup */
.hp-hero-visual { position: relative; }
.hp-mockup {
  max-width: 430px; padding: 1rem; border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
  box-shadow: 0 35px 90px rgba(79, 70, 229, .22), 0 12px 35px rgba(15, 23, 42, .08);
  transform: rotate(1.5deg);
}
.hp-mockup::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(109,93,252,.25), transparent 38%, rgba(6,182,212,.24));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px; mask-composite: exclude; -webkit-mask-composite: xor;
}
.hp-mockup-header { margin-bottom: 1.2rem; }
.hp-mockup-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hp-mockup-toolbar strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; color: var(--hp-ink); }
.hp-mockup-eyebrow { display: block; color: var(--hp-text-soft); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hp-mockup-pill { padding: .32rem .65rem; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .75rem; font-weight: 800; }
.hp-mockup-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: .85rem; }
.hp-metric-card {
  padding: .85rem; border-radius: 18px; background: #f8fafc; border: 1px solid #edf2f7;
}
.hp-metric-card span { display: block; color: var(--hp-text-soft); font-size: .72rem; }
.hp-metric-card strong { display: block; margin-top: .2rem; font-size: 1.45rem; color: var(--hp-ink); line-height: 1; }
.hp-mockup-list { display: flex; flex-direction: column; gap: .65rem; }
.hp-mockup-appt {
  margin: 0; padding: .78rem; border: 1px solid #eef2f7; border-radius: 18px;
  background: #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.hp-mockup-appt div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hp-mockup-appt div span { color: var(--hp-text-soft); font-size: .76rem; margin-top: .2rem; }
.hp-mockup-appt.pending { background: #fff7ed; border-color: #fed7aa; }
.hp-mockup-footer { margin-top: .85rem; padding: .75rem; border-radius: 16px; background: var(--hp-primary-soft); color: #4338ca; font-weight: 700; }
.hp-dot { width: 10px; height: 10px; box-shadow: 0 0 0 5px rgba(34, 197, 94, .12); }
.hp-dot.blue { box-shadow: 0 0 0 5px rgba(59, 130, 246, .12); }
.hp-dot.orange { box-shadow: 0 0 0 5px rgba(245, 158, 11, .16); }

/* Sections and cards */
.hp-section { padding: 6rem 2rem; position: relative; }
.hp-section-light { background: linear-gradient(180deg, rgba(246, 248, 255, .86), rgba(255, 255, 255, .72)); }
.hp-section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.045em; color: var(--hp-ink); }
.hp-section-sub { max-width: 660px; margin-left: auto; margin-right: auto; font-size: 1rem; }
.hp-categories { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; max-width: 980px; }
.hp-cat-card {
  min-height: 138px; justify-content: center; border-color: rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .82); box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.hp-cat-card:hover { border-color: var(--hp-border-strong); transform: translateY(-5px); box-shadow: 0 20px 45px rgba(79, 70, 229, .14); }
.hp-cat-icon {
  width: 54px; height: 54px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #ecfeff); font-size: 1.7rem;
}

/* Steps */
.hp-steps { max-width: 980px; gap: 1.25rem; }
.hp-step {
  position: relative; padding: 1.7rem; border: 1px solid rgba(226, 232, 240, .92); border-radius: 24px;
  background: rgba(255, 255, 255, .82); box-shadow: var(--hp-shadow-sm);
}
.hp-step-num { width: 42px; height: 42px; margin-bottom: .9rem; background: var(--hp-ink); font-size: 1rem; }
.hp-step-icon { color: var(--hp-primary); font-size: 1.35rem; margin-bottom: .35rem; }
.hp-step h3 { color: var(--hp-ink); letter-spacing: -.02em; }
.hp-step-arrow { align-self: center; padding-top: 0; color: #c7d2fe; font-weight: 900; }

/* Features */
.hp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
.hp-feat {
  position: relative; overflow: hidden; min-height: 230px; padding: 1.6rem;
  border-color: rgba(226, 232, 240, .92); border-radius: 24px;
  background: rgba(255, 255, 255, .86); box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hp-feat::after {
  content: ""; position: absolute; width: 9rem; height: 9rem; right: -4rem; top: -4rem;
  background: radial-gradient(circle, rgba(109, 93, 252, .12), transparent 68%);
}
.hp-feat:hover { transform: translateY(-6px); border-color: var(--hp-border-strong); box-shadow: 0 24px 55px rgba(79, 70, 229, .13); }
.hp-feat-icon {
  width: 52px; height: 52px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary)); color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, .24);
}
.hp-feat-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-feat h4 { color: var(--hp-ink); font-size: 1.08rem; letter-spacing: -.02em; }

/* Pricing */
.hp-promo-banner {
  border-radius: 18px; border-color: #fde68a; background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: 0 12px 30px rgba(245, 158, 11, .12);
}
.hp-pricing { align-items: stretch; max-width: 1030px; gap: 1.25rem; }
.hp-plan {
  min-width: 250px; max-width: 320px; padding: 2rem; border-radius: 26px; background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .06); border-color: rgba(226, 232, 240, .95);
}
.hp-plan-featured { transform: translateY(-10px); border-color: var(--hp-primary); box-shadow: var(--hp-shadow-md); }
.hp-plan-badge { top: -16px; padding: .38rem 1rem; box-shadow: 0 10px 24px rgba(79, 70, 229, .28); }
.hp-plan-name { color: var(--hp-primary-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.hp-plan-price { color: var(--hp-ink); letter-spacing: -.05em; }
.hp-plan-features li { display: flex; gap: .55rem; align-items: flex-start; }
.hp-plan-features li span { color: #16a34a; font-weight: 900; }
.hp-plan .hp-btn { width: 100%; }

/* CTA and footer */
.hp-cta {
  position: relative; overflow: hidden; background: linear-gradient(135deg, #312e81, var(--hp-primary) 48%, #0891b2);
}
.hp-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.22), transparent 24rem); }
.hp-cta-inner { position: relative; text-align: center; }
.hp-cta h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; }
.hp-cta .hp-hero-actions { justify-content: center; margin-top: 1.75rem; }
.hp-btn-white { box-shadow: 0 18px 35px rgba(15, 23, 42, .18); }
.hp-footer { background: #070b1a; color: #94a3b8; }
.hp-footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
.hp-footer strong { display: inline-flex; align-items: center; gap: .45rem; }
.hp-footer nav a:hover { color: #c7d2fe; }

/* Public search/business pages compatibility */
.hp-search-form { padding: .55rem; border: 1px solid rgba(226, 232, 240, .9); border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: var(--hp-shadow-sm); }
.hp-search-input, .hp-search-select { border-radius: 16px; border-color: transparent; background: #f8fafc; }
.hp-biz-card { border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 12px 28px rgba(15,23,42,.045); }
.hp-biz-avatar { background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary)); }
.hp-form-card { border-radius: 28px; box-shadow: var(--hp-shadow-sm); }

.hp-biz-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hp-biz-card { flex-direction: column; align-items: stretch; }
.hp-biz-card .hp-biz-main { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; color: inherit; }
.hp-biz-card .hp-biz-main:hover { text-decoration: none; }
.hp-directory-section { margin: 1.5rem 0 2rem; }
.hp-section-headline { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 .9rem; }
.hp-section-headline h2 { font-size: 1.15rem; color: var(--hp-ink); letter-spacing: -.02em; }
.hp-section-headline span { color: var(--hp-text-soft); font-size: .9rem; }
.hp-location-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: -1rem 0 1.25rem; padding: 1rem;
  border: 1px solid #c7d2fe; border-radius: 22px;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
}
.hp-location-card p { color: var(--hp-text-soft); font-size: .9rem; margin-top: .15rem; }
.hp-biz-card-featured { border-color: #c7d2fe; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(238,242,255,.55)); }
.hp-inline-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hp-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-choice-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border-radius: 22px;
  background: #fff; border: 1px solid var(--hp-border); box-shadow: var(--hp-shadow-sm);
}
.hp-choice-card strong { color: var(--hp-ink); font-size: 1.05rem; }
.hp-choice-card p { color: var(--hp-text-soft); font-size: .9rem; margin-bottom: .5rem; }
.hp-login-summary { border: 1px solid #c7d2fe; background: var(--hp-primary-soft); color: #4338ca; border-radius: 18px; padding: 1rem; margin-bottom: 1rem; }
.hp-help-card { background: linear-gradient(135deg, #eef2ff, #ecfeff); border: 1px solid #c7d2fe; border-radius: 22px; padding: 1rem; margin-bottom: 1rem; color: #334155; }

@media (max-width: 980px) {
  .hp-nav { width: calc(100% - 1rem); top: 8px; border-radius: 26px; }
  .hp-hero { flex-direction: column; text-align: center; padding: 8rem 1rem 4rem; gap: 2.5rem; }
  .hp-hero-content { max-width: 760px; }
  .hp-hero-title { max-width: none; }
  .hp-hero-sub { margin-left: auto; margin-right: auto; }
  .hp-hero-actions { justify-content: center; }
  .hp-hero-stats { margin-left: auto; margin-right: auto; }
  .hp-hero-visual { display: flex; width: 100%; }
  .hp-mockup { transform: none; max-width: 520px; }
  .hp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-plan-featured { transform: none; }
}

@media (max-width: 768px) {
  .hp-nav { height: 64px; padding: .55rem .65rem; }
  .hp-hamburger { display: flex; margin-left: auto; }
  .hp-nav-links {
    top: calc(100% + .55rem); left: .35rem; right: .35rem; padding: .85rem;
    border: 1px solid rgba(226,232,240,.95); border-radius: 22px; background: rgba(255,255,255,.96);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .12); gap: .5rem;
  }
  .hp-nav-links.open { display: flex; }
  .hp-nav-link, .hp-nav-links .hp-btn { width: 100%; justify-content: center; }
  .hp-section { padding: 4.5rem 1rem; }
  .hp-hero-stats { grid-template-columns: 1fr; }
  .hp-steps { flex-direction: column; align-items: stretch; }
  .hp-step-arrow { display: none; }
  .hp-features { grid-template-columns: 1fr; }
  .hp-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hp-container { width: min(100% - 1.25rem, 1140px); }
  .hp-brand { font-size: 1.05rem; }
  .hp-brand-mark { width: 34px; height: 34px; border-radius: 12px; }
  .hp-brand-logo { width: 142px; height: 46px; }
  .hp-hero { padding-top: 7rem; }
  .hp-hero-title { font-size: clamp(2.35rem, 14vw, 3.4rem); letter-spacing: -.047em; line-height: 1.1; padding-block: .12em; }
  .hp-hero-actions { width: 100%; }
  .hp-hero-actions .hp-btn { width: 100%; }
  .hp-mockup { padding: .8rem; border-radius: 22px; font-size: .82rem; }
  .hp-mockup-metrics { grid-template-columns: 1fr; }
  .hp-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .hp-cat-card { min-height: 124px; padding: 1rem .55rem; }
  .hp-pricing { display: grid; grid-template-columns: 1fr; }
  .hp-plan { min-width: 0; max-width: none; width: 100%; }
  .hp-search-form { border-radius: 18px; }
  .hp-search-form .hp-btn, .hp-search-input, .hp-search-select { width: 100%; }
  .hp-choice-grid { grid-template-columns: 1fr; }
  .hp-section-headline { display: block; }
  .hp-location-card { align-items: stretch; flex-direction: column; }
  .hp-location-card .hp-btn { width: 100%; }
  .hp-biz-card { align-items: stretch; flex-direction: column; }
  .hp-biz-card .hp-biz-main { width: 100%; }
  .hp-biz-actions { width: 100%; justify-content: stretch; }
  .hp-biz-actions .hp-btn, .hp-biz-actions form, .hp-biz-actions button { flex: 1 1 100%; width: 100%; }
  .hp-fav-card { align-items: flex-start; flex-direction: column; }
  .hp-inline-actions { width: 100%; justify-content: stretch; }
  .hp-inline-actions .hp-btn, .hp-inline-actions form, .hp-inline-actions button { width: 100%; flex: 1 1 100%; }
}
