/* ============================================================
   Home page v2 (13 Oct 2026). Self-contained: only the header, footer,
   .cd-container and .cd-btn come from the shared stylesheets. Tokens
   come from cd-light.css (:root). Prefix: hv-
   ============================================================ */

.hv { color: var(--text); }
.hv h1, .hv h2, .hv h3 { font-family: var(--font-display); color: var(--text-strong); letter-spacing: -0.015em; }
.hv p { line-height: 1.6; }
.hv a { color: inherit; }

/* ---------- Hero ---------- */
.hv-hero { padding-top: 56px; padding-bottom: 36px; background: #fff; }
.hv-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hv-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); margin-bottom: 18px; }
.hv-h1 { font-size: clamp(32px, 3.9vw, 48px); line-height: 1.08; font-weight: 800; margin: 0 0 16px; }
.hv-h1 span { display: block; color: var(--purple); }
.hv-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-muted); max-width: 580px; margin: 0 0 26px; }
.hv-sub strong { color: var(--text-strong); }

.hv-search { max-width: 640px; }
.hv-search__row { display: flex; align-items: stretch; border: 2px solid var(--purple); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -12px rgba(124,58,237,0.35); overflow: hidden; }
.hv-search__row:focus-within { box-shadow: 0 0 0 4px rgba(124,58,237,0.14), 0 10px 30px -12px rgba(124,58,237,0.35); }
.hv-search__input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16.5px; padding-top: 16px; padding-bottom: 16px; padding-left: 18px; padding-right: 12px; color: var(--text-strong); background: transparent; }
.hv-search__input::placeholder { color: var(--text-dim); }
.hv-search__btn { flex: 0 0 auto; border: 0; cursor: pointer; background: var(--purple); color: #fff; font: inherit; font-weight: 700; font-size: 15px; padding-left: 20px; padding-right: 20px; display: inline-flex; align-items: center; gap: 8px; transition: background var(--transition); }
.hv-search__btn:hover { background: var(--purple-hover); }
.hv-search__btn svg { width: 18px; height: 18px; }
.hv-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hv-hints__label { font-size: 13px; color: var(--text-dim); margin-right: 2px; }
.hv-hint { border: 1px solid var(--border); background: var(--bg-2); color: var(--text-muted); border-radius: 999px; padding-top: 6px; padding-bottom: 6px; padding-left: 12px; padding-right: 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.hv-hint:hover, .hv-hint:focus { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); outline: none; }

.hv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.hv-hero__price { font-size: 14px; color: var(--text-muted); }
.hv-hero__price strong { color: var(--text-strong); font-weight: 800; }
.hv-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.hv-proof__item { display: inline-flex; align-items: center; gap: 6px; }
.hv-proof__item svg { flex-shrink: 0; }
.hv-proof__live { color: #166534; }
.hv-proof__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.22); }

/* document preview */
.hv-doc { position: relative; display: block; text-decoration: none; }
.hv-doc__frame { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(15,23,42,0.28), 0 2px 6px rgba(15,23,42,0.06); padding-top: 14px; padding-bottom: 14px; padding-left: 14px; padding-right: 14px; transform: rotate(-1.2deg); transition: transform var(--transition); }
.hv-doc:hover .hv-doc__frame { transform: rotate(0deg) translateY(-3px); }
.hv-doc__frame img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border-light); display: block; }
.hv-doc__tag { position: absolute; top: -14px; right: 18px; background: var(--purple); color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding-top: 8px; padding-bottom: 8px; padding-left: 14px; padding-right: 14px; box-shadow: 0 8px 20px rgba(124,58,237,0.35); }
.hv-doc__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }
.hv-doc__cap strong { color: var(--text-strong); }
.hv-doc__cap span:last-child { color: var(--purple); font-weight: 700; white-space: nowrap; }

/* chat thread (ids used by the hero script) */
.cd-hero-chat { max-width: 640px; margin-top: 14px; text-align: left; }
.cd-hero-chat__thread { display: flex; flex-direction: column; gap: 10px; }
.cd-chatb { max-width: 92%; padding-top: 12px; padding-bottom: 12px; padding-left: 16px; padding-right: 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; animation: hvChatIn .25s ease-out; }
.cd-chatb--user { align-self: flex-end; background: #6d28d9; color: #fff; border-bottom-right-radius: 6px; }
.cd-chatb--bot { align-self: flex-start; background: #fff; color: #0f172a; border: 1px solid rgba(124,58,237,.22); box-shadow: 0 6px 24px rgba(15,23,42,.06); border-bottom-left-radius: 6px; }
.cd-chatb--bot p { margin: 0 0 8px; }
.cd-chatb--bot p:last-child { margin-bottom: 0; }
.cd-chatb__title { font-weight: 800; color: #5b21b6; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
.cd-chatb__does { margin: 6px 0 10px 0; padding: 0; list-style: none; }
.cd-chatb__does li { position: relative; padding-left: 22px; margin: 4px 0; font-size: 14px; color: #334155; }
.cd-chatb__does li:before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #7c3aed; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.cd-chatb__states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cd-chatb__state { border: 1.5px solid rgba(124,58,237,.35); background: #faf5ff; color: #4c1d95; font-weight: 700; font-size: 13px; padding-top: 6px; padding-bottom: 6px; padding-left: 12px; padding-right: 12px; border-radius: 999px; cursor: pointer; transition: all .15s; font-family: inherit; }
.cd-chatb__state:hover, .cd-chatb__state:focus { background: #7c3aed; color: #fff; border-color: #7c3aed; outline: none; }
.cd-chatb__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; background: #6d28d9; color: #fff !important; font-weight: 800; padding-top: 12px; padding-bottom: 12px; padding-left: 20px; padding-right: 20px; border-radius: 12px; text-decoration: none; font-size: 15px; box-shadow: 0 8px 24px rgba(109,40,217,.28); }
.cd-chatb__cta:hover { background: #5b21b6; transform: translateY(-1px); }
.cd-chatb__meta { display: block; margin-top: 8px; font-size: 12.5px; color: #64748b; }
.cd-chatb__meta a { color: #6d28d9; text-decoration: underline; }
.cd-chat-typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.cd-chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; animation: hvDot 1s infinite; }
.cd-chat-typing i:nth-child(2) { animation-delay: .15s; } .cd-chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hvDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes hvChatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cd-chatb, .cd-chat-typing i { animation: none; } }

/* ---------- Sections ---------- */
.hv-section { padding-top: 72px; padding-bottom: 72px; }
.hv-section--alt { background: var(--bg-2); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.hv-head { max-width: 720px; margin-bottom: 36px; }
.hv-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.hv-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 800; margin: 0 0 12px; }
.hv-head p { font-size: 17px; color: var(--text-muted); margin: 0; }

/* situation tiles */
.hv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hv-tile { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding-top: 20px; padding-bottom: 18px; padding-left: 20px; padding-right: 20px; text-decoration: none; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); min-height: 150px; }
.hv-tile:hover { border-color: var(--purple); box-shadow: 0 14px 30px -16px rgba(124,58,237,0.35); transform: translateY(-2px); }
.hv-tile__q { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text-strong); line-height: 1.25; }
.hv-tile__doc { font-size: 14px; color: var(--text-muted); line-height: 1.45; flex: 1; }
.hv-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--purple); }
.hv-tile__price { color: var(--text-strong); font-size: 16px; font-weight: 800; }
.hv-tiles__more { text-align: center; margin-top: 26px; font-size: 15px; color: var(--text-muted); }
.hv-tiles__more a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* how it works */
.hv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hv-step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding-top: 24px; padding-bottom: 24px; padding-left: 24px; padding-right: 24px; }
.hv-step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--purple-soft); color: var(--purple); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.hv-step h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.hv-step p { font-size: 15px; color: var(--text-muted); margin: 0; }
.hv-step__time { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; }
.hv-guarantee { max-width: 760px; margin-top: 26px; margin-left: auto; margin-right: auto; }

/* cost compare */
.hv-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.hv-col { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding-top: 22px; padding-bottom: 22px; padding-left: 22px; padding-right: 22px; display: flex; flex-direction: column; gap: 10px; }
.hv-col--us { border-color: var(--purple); box-shadow: 0 18px 40px -20px rgba(124,58,237,0.4); position: relative; }
.hv-col__badge { position: absolute; top: -12px; left: 22px; background: var(--purple); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; }
.hv-col__name { font-size: 14px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.hv-col__price { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--text-strong); line-height: 1; }
.hv-col__price small { font-size: 14px; font-weight: 600; color: var(--text-dim); margin-left: 6px; }
.hv-col ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hv-col li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--text-muted); line-height: 1.45; }
.hv-col li svg { flex-shrink: 0; margin-top: 3px; }
.hv-col--us li { color: var(--text); }
.hv-col .cd-btn { justify-content: center; margin-top: 12px; }
.hv-compare__note { margin-top: 16px; font-size: 13px; color: var(--text-dim); text-align: center; }

/* numbers */
.hv-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hv-number { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding-top: 22px; padding-bottom: 22px; padding-left: 22px; padding-right: 22px; }
.hv-number strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--text-strong); line-height: 1.1; margin-bottom: 6px; }
.hv-number span { font-size: 14.5px; color: var(--text-muted); }
.hv-numbers__src { margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.hv-numbers__src a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.hv-faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.hv-faq details { border-bottom: 1px solid var(--border); }
.hv-faq summary { cursor: pointer; list-style: none; padding-top: 18px; padding-bottom: 18px; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-strong); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.hv-faq summary::-webkit-details-marker { display: none; }
.hv-faq summary::after { content: "+"; font-size: 22px; color: var(--purple); font-weight: 400; flex-shrink: 0; }
.hv-faq details[open] summary::after { content: "\2212"; }
.hv-faq details p { margin: 0; padding-bottom: 18px; font-size: 15.5px; color: var(--text-muted); }
.hv-faq details p a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* final CTA */
.hv .hv-cta { background: #0f172a !important; color: #fff; padding-top: 72px; padding-bottom: 72px; text-align: center; }
.hv .hv-cta h2 { color: #fff !important; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; margin: 0 0 12px; }
.hv .hv-cta p { color: rgba(255,255,255,0.82) !important; font-size: 17px; max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: 26px; }
.hv-cta .cd-btn--primary { background: #fff; color: var(--purple); border-color: #fff; }
.hv-cta .cd-btn--primary:hover { background: var(--purple-soft); border-color: var(--purple-soft); color: var(--purple-hover); }
.hv .hv-cta__sub { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,0.7) !important; }
.hv-disclaimer { padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: var(--text-dim); text-align: center; background: var(--bg-2); }

/* assessment widget wrapper */
.hv-assess { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hv-hero__grid { gap: 32px; }
  .hv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hv-hero__grid { grid-template-columns: 1fr; }
  .hv-hero__visual { max-width: 560px; margin-top: 8px; }
  .hv-hero__visual .hv-doc__frame { transform: none; }
}
@media (max-width: 768px) {
  .hv-hero { padding-top: 32px; padding-bottom: 28px; }
  .hv-section { padding-top: 52px; padding-bottom: 52px; }
  .hv-head { margin-bottom: 24px; }
  .hv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hv-steps, .hv-compare, .hv-numbers { grid-template-columns: 1fr; }
  .hv-hero__visual { display: none; }
  .hv-search__btn span { display: none; }
  .hv-search__btn { padding-left: 16px; padding-right: 16px; }
  .hv-hero__actions .cd-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hv-tiles { grid-template-columns: 1fr; }
  .hv-tile { min-height: 0; }
  .hv-hint:nth-child(n+6) { display: none; }
  .hv-proof { gap: 6px 14px; font-size: 13px; }
  .hv-h1 { font-size: 27px; line-height: 1.1; }
  .hv-eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hv-sub { font-size: 15.5px; }
  .hv-sub .hv-sub__more { display: none; }
  .cd-chatb { max-width: 100%; font-size: 14.5px; }
}
