﻿/* ==========================================================================
   Insurance as a Service pages — /intl/isasv/main + /intl/isasv/product (2026-11-18)
   Page-local layer ON TOP of checkdi-marketplace.css (cd-* classes, loaded by mainth.master).
   Only what the cd-* system has no class for: the animated checkout demo, business tabs,
   revenue calculator, integration visuals, steps, case card, FAQ, contact form, mobile sticky CTA,
   scroll reveal. Behaviour: /content/js/isasv.js. Moved out of main.aspx's <style> so the product
   page uses the same rules (one copy).
   ========================================================================== */
/* ===== hero stage: mascot peek + demo card + floating cards (pattern = th/main .hp-stage) ===== */
.iasv-stage { position: relative; display: flex; flex-direction: column; align-items: flex-end; padding-top: 120px; }
.iasv-peek { position: absolute; top: 0; right: 36px; width: 140px; height: auto; z-index: 0; }
.iasv-stage .cq-card { position: relative; z-index: 1; max-width: 460px; }
.iasv-stage .cd-floating-card { z-index: 2; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; animation: none; }
.iasv-stage .cd-floating-card.show { opacity: 1; transform: none; }
.iasv-stage .iasv-fc-earn { top: 40px; right: 190px; }

/* product tabs inside the card (square = pressable) */
/* one even row of 5 (icon over label, like th/main's .hp-grid tiles) — wrapped to 2 rows as inline chips */
.iasv-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.iasv-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid #eceef1; background: #fff; border-radius: 10px; padding: 8px 2px; font: inherit; font-size: 12px; font-weight: 600; color: #1a1d23; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.iasv-tabs button i.icon { margin: 0; font-size: 16px; color: #8a8a8a; }
.iasv-tabs button:hover { border-color: var(--cd-orange); }
.iasv-tabs button.on { background: var(--cd-soft); border-color: var(--cd-orange); color: var(--cd-ink); }
.iasv-tabs button.on i.icon { color: var(--cd-orange); }

/* checkout demo rows */
.iasv-co { position: relative; overflow: hidden; padding-bottom: 58px; }
.iasv-co .top { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; }
.iasv-co .ex { font-size: 11px; background: #f3f4f6; padding: 1px 8px; border-radius: 999px; }
.iasv-co .trip { font-weight: 700; font-size: 16px; margin: 4px 0 12px; }
.iasv-co .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #f0f0f0; font-size: 15px; }
.iasv-co .row.total { font-size: 18px; font-weight: 700; }
.iasv-co .price { color: var(--cd-blue); font-weight: 700; }
.iasv-addon { position: relative; display: flex; gap: 10px; align-items: center; border: 2px dashed #d9dbe1; border-radius: 12px; padding: 12px; margin: 4px 0 12px; transition: all .3s; }
.iasv-addon .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c7cbd3; display: flex; align-items: center; justify-content: center; flex: none; transition: all .25s; }
.iasv-addon .box i.icon { margin: 0; color: #fff; font-size: 12px; opacity: 0; transform: scale(.3); transition: all .25s; }
.iasv-addon .txt { flex: 1; line-height: 1.35; }
.iasv-addon .txt small { display: block; color: #6b7280; font-size: 12px; }
.iasv-addon.added { border: 2px solid var(--cd-mid); background: var(--cd-soft); box-shadow: 0 6px 18px rgba(247,136,31,.16); }
.iasv-addon.added .box { background: var(--cd-orange); border-color: var(--cd-orange); }
.iasv-addon.added .box i.icon { opacity: 1; transform: scale(1); }
.iasv-cursor { position: absolute; left: 60%; top: 140%; font-size: 22px; color: #1a1d23; opacity: 0; transition: all .7s cubic-bezier(.3,.7,.4,1); pointer-events: none; }
.iasv-cursor i.icon { margin: 0; }
.iasv-cursor.go { left: 14px; top: 14px; opacity: 1; }
.iasv-cursor.tap { transform: scale(.8); }
.iasv-toast { position: absolute; left: 0; right: 0; bottom: -60px; background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--cd-shadow-md); transition: bottom .35s; }
.iasv-toast.show { bottom: 2px; }
.iasv-toast i.icon { color: var(--cd-green); }

/* why-card proof line + live dot */
.iasv-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--cd-green); }
.iasv-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cd-green); animation: cd-pulse 2s infinite; }

/* business-type tabs + panel */
.iasv-btabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 28px 0 20px; }
.iasv-btabs button { border: 1.5px solid var(--cd-line); background: #fff; border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--cd-ink); cursor: pointer; transition: all .18s; }
.iasv-btabs button i.icon { margin: 0 6px 0 0; color: var(--cd-muted); }
.iasv-btabs button:hover { border-color: var(--cd-orange); }
.iasv-btabs button.on { border-color: var(--cd-orange); background: var(--cd-soft); }
.iasv-btabs button.on i.icon { color: var(--cd-orange); }
.iasv-panel { display: none; background: #fff; border: 1px solid var(--cd-line); border-radius: 16px; padding: 28px; box-shadow: var(--cd-shadow-sm); }
.iasv-panel.on { display: block; animation: iasvfade .3s; }
@keyframes iasvfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.iasv-panel h3 { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: var(--cd-ink); }
.iasv-panel p { color: var(--cd-text-2); font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.iasv-panel .cd-prod-tag { margin: 0 4px 6px 0; }
.iasv-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.iasv-kv > div { background: var(--cd-bg); border: 1px solid var(--cd-line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--cd-text); }
.iasv-kv b { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--cd-orange-text); margin-bottom: 4px; }

/* calculator */
.iasv-calc { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--cd-line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--cd-shadow-sm); margin-top: 28px; }
.iasv-calc .in { padding: 28px; }
.iasv-calc .out { padding: 28px; background: var(--cd-soft); border-left: 1px solid #ffe0c2; display: flex; flex-direction: column; justify-content: center; }
.iasv-calc .fld { margin-bottom: 20px; }
.iasv-calc .fld .top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; color: var(--cd-ink); }
.iasv-calc .fld output { color: var(--cd-blue); font-weight: 700; }
.iasv-calc input[type=range] { width: 100%; accent-color: var(--cd-orange); }
.iasv-calc .fld small { color: var(--cd-muted); }
.iasv-calc .lab { font-size: 14px; color: var(--cd-text-2); }
.iasv-calc .big { font-size: clamp(34px, 4vw, 46px); font-weight: 700; color: var(--cd-orange-text); line-height: 1.1; margin: 4px 0; }
.iasv-calc .line { display: flex; justify-content: space-between; border-top: 1px dashed #ffd2a8; padding: 10px 0; font-size: 14px; color: var(--cd-text); }
.iasv-calc .cd-btn { margin-top: 12px; align-self: flex-start; }

/* integration visuals inside cd-prod-card */
.iasv-vis { margin: 4px 0 14px; }
.iasv-link { display: flex; border: 1px solid var(--cd-line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.iasv-link span { padding: 9px 10px; flex: 1; color: var(--cd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iasv-link b { padding: 9px 12px; background: var(--cd-soft); color: var(--cd-orange-text); }
.iasv-widget { border: 1px solid var(--cd-line); border-radius: 10px; padding: 12px; }
.iasv-widget .wrow { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.iasv-widget .sw { width: 34px; height: 20px; border-radius: 20px; background: var(--cd-orange); position: relative; flex: none; }
.iasv-widget .sw:after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.iasv-code { background: #16181d; color: #e6e8ec; border-radius: 10px; padding: 12px; font: 11.5px/1.55 Consolas, Menlo, monospace; overflow-x: auto; white-space: pre; }
.iasv-code .k { color: #FFB000; } .iasv-code .s { color: #8fd19e; } .iasv-code .c { color: #7d8494; }

/* steps */
.iasv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.iasv-steps .n { font-size: 36px; font-weight: 700; color: var(--cd-orange-text); line-height: 1; margin-bottom: 10px; }

/* case study on cd-promo-card */
.iasv-case { min-height: 0; padding: 36px; }
.iasv-case .metric { position: relative; z-index: 1; font-size: 48px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.iasv-case h3, .iasv-case p { max-width: calc(100% - 200px); }

/* licence badge */
.iasv-lic { display: inline-flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--cd-shadow-sm); margin-top: 8px; }
.iasv-lic i.icon { color: var(--cd-green); margin: 0; }
.iasv-lic small { display: block; color: var(--cd-text-2); }

/* FAQ */
.iasv-faq { max-width: 820px; margin: 24px auto 0; }
.iasv-faq details { background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.iasv-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--cd-ink); }
.iasv-faq summary::-webkit-details-marker { display: none; }
.iasv-faq summary:after { content: "+"; font-size: 20px; color: var(--cd-orange-text); }
.iasv-faq details[open] summary:after { content: "\2212"; }
.iasv-faq details p { margin: 10px 0 0; color: var(--cd-text-2); line-height: 1.6; }

/* contact: cd-helper look, two columns with the form */
.iasv-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: #fffaf4; border: 1px solid #ffe0c2; border-radius: 20px; padding: 36px; box-shadow: var(--cd-shadow-sm); }
.iasv-contact .cd-hero-checklist li { font-size: 15px; }
.iasv-form { background: #fff; border: 1px solid var(--cd-line); border-radius: 16px; padding: 22px; }
.iasv-form label { display: block; font-size: 13px; font-weight: 600; color: var(--cd-ink); margin: 0 0 6px; }
.iasv-form input, .iasv-form select { width: 100%; height: 46px; border: 1px solid #d4d4d5; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; margin-bottom: 12px; background: #fff; }
.iasv-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iasv-form .cd-btn { width: 100%; }

/* scroll reveal (JS adds .rv / .in) */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }

/* mobile sticky CTA */
.iasv-sticky { display: none; }

@media (max-width: 900px) {
    .iasv-stage { align-items: stretch; padding-top: 0; }
    .iasv-stage .cq-card { max-width: none; margin-top: 80px; }
    .iasv-peek { width: 90px; right: 14px; }
    .iasv-stage .cd-floating-card { display: none; }
    .iasv-calc, .iasv-contact { grid-template-columns: 1fr; }
    .iasv-calc .out { border-left: 0; border-top: 1px solid #ffe0c2; }
    .iasv-case h3, .iasv-case p { max-width: 100%; }
}
@media (max-width: 767px) {
    .iasv-kv, .iasv-steps { grid-template-columns: 1fr; }
    .iasv-panel, .iasv-contact { padding: 20px; }
    .iasv-form .two { grid-template-columns: 1fr; gap: 0; }
    .iasv-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 8px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--cd-line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
    .iasv-sticky .cd-btn { flex: 1; padding: 12px; font-size: 15px; }
    body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .rv, .iasv-co *, .iasv-stage * { transition: none !important; animation: none !important; } .rv { opacity: 1; transform: none; } }
