/* ============================================================
   virAI homepage: layered on style.css (shares tokens + theme)
   ============================================================ */
.home { overflow-x: hidden; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .container { padding-inline: 28px; } }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
section[id] { scroll-margin-top: 76px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand img { height: 38px; width: auto; }
.links { display: none; gap: 4px; margin-left: 12px; }
.links a, .mnav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.links a:hover { color: var(--ink); background: var(--chip); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav .theme-toggle { position: static; translate: none; }
.btn-sm { width: auto; padding: 11px 18px; font-size: 14.5px; border-radius: 12px; min-height: 0; }
.nav-cta { display: none; }
.burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.burger .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mnav { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 13px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
.mnav .btn { margin-top: 12px; }
@media (min-width: 980px) {
  .links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger, .mnav { display: none !important; }
}

/* ---------- shared ---------- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.home h2 { margin: 0; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.home h3 { margin: 0; letter-spacing: -0.02em; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 12px; }
.sec { padding: 72px 0; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 980px) { .sec { padding: 112px 0; } }
.sec-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.sec-head p { color: var(--text); font-size: 18px; margin: 14px 0 0; }
.sec-head.left { text-align: left; margin: 0; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 22px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .2s, transform .15s; }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 28px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -200px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 380px at 85% 30%, var(--glow-b), transparent 70%), radial-gradient(700px 420px at 15% 10%, var(--glow-a), transparent 70%); }
.hero-in { display: grid; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); box-shadow: 0 4px 14px var(--shadow); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.05em; margin: 20px 0 0; }
.hero h1 em { display: inline; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); margin: 20px 0 0; max-width: 560px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-cta .btn { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 32px 0 0; max-width: 520px; }
.stats div { padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stats dt { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (min-width: 560px) { .hero-cta { flex-direction: row; } .hero-cta .btn { width: auto; } }
@media (min-width: 980px) { .hero { padding: 72px 0 40px; } .hero-in { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }

/* hero mock */
.mock { position: relative; min-height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
.m-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px var(--shadow); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.m-card b { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.m-card small { display: block; font-size: 12.5px; color: var(--muted); }
.m-call { position: relative; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; margin: 0 26px 0 0; animation: rise .7s ease both; }
.m-row { display: flex; align-items: center; gap: 12px; }
.m-row img { width: 46px; height: 46px; border-radius: 50%; padding: 3px; background: var(--avatar-bg); border: 2px solid transparent; background-image: linear-gradient(var(--avatar-bg), var(--avatar-bg)), var(--brand-d); background-origin: border-box; background-clip: padding-box, border-box; }
.m-live { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.m-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.m-wave { display: flex; align-items: center; gap: 3px; height: 40px; padding: 0 2px; }
.m-wave i { flex: 1; height: var(--h); border-radius: 3px; background: var(--brand-d); animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); transform-origin: center; }
.m-bubble { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.m-bubble.ai { background: var(--chip); color: var(--ink); border-bottom-left-radius: 5px; }
.m-bubble.me { align-self: flex-end; background: var(--brand-d); color: #fff; border-bottom-right-radius: 5px; }
.b1 { animation: pop .5s .4s both; } .b2 { animation: pop .5s .9s both; } .b3 { animation: pop .5s 1.4s both; }
.m-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand-d); flex: none; }
.m-ic .ic { width: 20px; height: 20px; }
.m-ic.g { background: linear-gradient(135deg, #16a34a, #22c55e); }
.m-check { margin-left: 6px; color: var(--green); } .m-check .ic { width: 20px; height: 20px; }
.m-book { right: 0; bottom: 58px; animation: float 6s ease-in-out 1.6s infinite, pop .6s 1.6s both; }
.m-lead { left: -6px; bottom: -6px; animation: float 7s ease-in-out 1.9s infinite, pop .6s 1.9s both; }
.m-msg { right: -4px; top: -22px; animation: float 6.5s ease-in-out 2.2s infinite, pop .6s 2.2s both; }
@media (max-width: 559px) { .m-msg { display: none; } .mock { min-height: 0; padding-bottom: 120px; } .m-call { margin: 0; } .m-book { bottom: 54px; } }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { translate: 0 -8px; } }

.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.works > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.works ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.works li { font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- agents ---------- */
.live-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
.agent { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; min-width: 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.agent.live { overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 14px 40px var(--shadow); }
.agent.live:hover { transform: translateY(-4px); box-shadow: 0 26px 60px var(--shadow); }
.agent-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--chip); }
.agent-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s ease; }
.agent.live:hover .agent-media img { transform: scale(1.04); }
.play { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 13, 13, .72); backdrop-filter: blur(6px); }
.play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.agent-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.agent-head { display: flex; align-items: center; gap: 14px; }
.agent-head h3 { font-size: 22px; }
.badge-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--brand-d); flex: none; box-shadow: 0 8px 20px rgba(224, 56, 142, .25); }
.badge-ic.soft { background: var(--chip); color: var(--ink); box-shadow: none; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.agent-body > p { margin: 0; color: var(--text); }
.agent-body strong { color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 14px; font-weight: 600; }
.ticks li { display: flex; align-items: flex-start; gap: 7px; line-height: 1.3; }
.ticks .chk { width: 18px; height: 18px; flex: none; }
.ticks .chk svg { width: 11px; height: 11px; }
.best { font-size: 13.5px; color: var(--muted) !important; margin-top: auto !important; padding-top: 4px; }
.best span { font-weight: 700; color: var(--ink); margin-right: 4px; }
.agent-body .btn { margin-top: 4px; }

.soon-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 64px 0 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.soon-head h3 { font-size: 24px; }
.soon-head p { margin: 0; color: var(--muted); }
.soon-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .soon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .soon-grid { grid-template-columns: repeat(4, 1fr); } }
.agent.soon { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.agent.soon:hover { border-color: color-mix(in srgb, var(--amber-2) 55%, var(--line)); transform: translateY(-2px); }
.soon-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.soon-pill { display: inline-flex; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--amber-ink); background: var(--amber-soft); }
.agent.soon h3 { font-size: 17.5px; }
.agent.soon p { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags span { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 8px; background: var(--chip); }
.notify { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.notify .ic { width: 16px; height: 16px; }
.notify:hover { border-color: var(--amber-2); background: var(--amber-soft); }
.notify.done { border-color: transparent; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); cursor: default; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 28px 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-weight: 800; font-size: 18px; color: #0d0d0d; background: linear-gradient(180deg, var(--amber-1), var(--amber-2)); margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text); }

/* ---------- why ---------- */
.why { display: grid; gap: 36px; align-items: center; }
.why p { color: var(--text); font-size: 17px; margin: 16px 0 0; max-width: 560px; }
.why p strong { color: var(--ink); }
@media (min-width: 980px) { .why { grid-template-columns: 1fr 1fr; gap: 72px; } }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px 22px; box-shadow: 0 24px 60px var(--shadow); }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.lrow:last-child { border-bottom: 0; }
.lrow span { color: var(--text); }
.lrow small { display: block; font-size: 12px; color: var(--muted); }
.lrow b { font-size: 18px; white-space: nowrap; letter-spacing: -0.02em; }
.lrow .strike { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.lrow .g { font-size: 28px; background-image: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lrow.total b { color: var(--green); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: 100px; } }
.sec.alt .faq details { background: var(--bg); }
.sec-head a { color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */
.contact { display: grid; gap: 36px; }
@media (min-width: 980px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }
.contact-copy p { color: var(--text); font-size: 17px; margin: 16px 0 0; }
.c-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.c-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.c-list .ic { color: var(--amber-ink); margin-top: 2px; }
.c-list a { color: var(--ink); font-weight: 600; }
.c-form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px var(--shadow); position: relative; }
.two { display: grid; gap: 14px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.field textarea { font: inherit; font-size: 16px; padding: 14px 15px; border-radius: 14px; background: var(--input-bg); border: 1.5px solid var(--input-border); color: var(--ink); resize: vertical; min-height: 120px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea:focus { border-color: #e0388e; box-shadow: 0 0 0 4px rgba(224, 56, 142, 0.12); }
.field [aria-invalid="true"] { border-color: var(--red) !important; }
.opt { font-weight: 500; color: var(--muted); }
.c-form .err, #notify .err { margin: 0; min-height: 0; font-size: 14px; color: var(--red); font-weight: 600; }
.c-form .err:empty, #notify .err:empty { display: none; }
.ok { margin: 0; padding: 14px 16px; border-radius: 14px; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.ok[hidden] { display: none; }
.send { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

#notify h2 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
#notify .soon-pill { align-self: flex-start; }
.n-sub { margin: 0; color: var(--text); font-size: 15px; }

/* ---------- band ---------- */
.band { padding: 0 0 80px; }
.band-in { border-radius: 28px; padding: 52px 24px; text-align: center; color: #fff; background: linear-gradient(120deg, #8e24aa 0%, #e0388e 50%, #ff7a45 100%); position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(224, 56, 142, .25); }
.band-in::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 80% 0%, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.band-in h2 { color: #fff; }
.band-in p { font-size: 18px; margin: 12px 0 26px; opacity: .92; }
.btn-dark { width: auto; display: inline-flex; background: #0d0d0d; color: #fff !important; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.btn-dark:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
@media (min-width: 980px) { .band-in { padding: 80px 40px; } }

/* ---------- footer ---------- */
.site-foot { margin-top: 0; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; padding-block: 52px 32px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 320px; }
.site-foot nav { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; align-items: flex-start; justify-content: flex-start; }
.site-foot h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.site-foot nav a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 22px 34px; display: grid; gap: 8px; }
.foot-bottom .disc { max-width: none; text-align: left; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.agent.soon.ask { border-style: dashed; background: transparent; }
.notify svg:not(.ic) { width: 16px; height: 16px; }
a.notify { text-decoration: none; }

/* ---------- 5 live agents: 3 + 2 centered ---------- */
@media (min-width: 760px) {
  .live-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .live-grid > .agent.live { flex: 0 1 calc((100% - 40px) / 3); }
}
.foot-brand .addr { margin-top: 14px !important; font-size: 13.5px !important; line-height: 1.6; color: var(--muted); }
.foot-brand .addr a, .foot-bottom .disc a { color: var(--text); }
.foot-bottom .disc strong { color: var(--text); }

/* ---------- inner pages ---------- */
.page-hero { padding: 64px 0 28px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.045em; margin: 10px 0 0; }
.page-hero .lede { margin-top: 16px; }
.page-hero .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.legal { max-width: 820px; padding-bottom: 80px; }
.legal h2 { font-size: 24px !important; letter-spacing: -0.02em !important; margin: 40px 0 10px !important; scroll-margin-top: 90px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text); font-size: 16.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); font-weight: 600; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 18px 0; }
.legal .toc { columns: 2; column-gap: 32px; padding-left: 20px; }
@media (max-width: 640px) { .legal .toc { columns: 1; } }
.about-grid { display: grid; gap: 18px; margin: 28px 0; }
@media (min-width: 760px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.about-grid .card h3 { margin: 12px 0 6px; font-size: 19px; }
.about-grid .card p { margin: 0; font-size: 15.5px; color: var(--text); }
.about-grid .badge-ic { width: 46px; height: 46px; }
.contact-page { padding-bottom: 90px; }
.container.narrow, .container.legal { max-width: 876px; }
.legal .toc { list-style: none; padding-left: 0; margin: 10px 0 0; }
.legal .toc li { break-inside: avoid; }
.legal .toc a { text-decoration: none; font-weight: 600; }
.legal .toc a:hover { text-decoration: underline; }
