/* Harness additions on top of the Pulsar brand stylesheet */
.plans-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plans-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans-grid-4 { grid-template-columns: 1fr; } }
.plan-limit-note { font-size: 0.7em; color: var(--muted); font-weight: 500; }
.ages-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ages-row input { width: 76px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-input); font: inherit; }
.qr-breakdown .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.15); font-size: 0.95rem; }
.qr-breakdown .row .k { opacity: .8; }
.qr-alt { margin-top: 14px; font-size: .9rem; opacity: .85; }
.alert-bar-warn .alert-bar-inner { font-size: .85rem; }

/* Launcher */
.nova-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: 0; border-radius: var(--radius-button);
  background: var(--deep-field); color: #fff; font: 600 15px/1 var(--font-body);
  box-shadow: var(--shadow); cursor: pointer;
}
.nova-launcher:hover { background: var(--deep-field-2); }
.nova-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 0 0 rgba(8,185,216,.6); animation: novapulse 1.8s infinite; }
@keyframes novapulse { 0% { box-shadow: 0 0 0 0 rgba(8,185,216,.6);} 70% { box-shadow: 0 0 0 10px rgba(8,185,216,0);} 100% { box-shadow: 0 0 0 0 rgba(8,185,216,0);} }
@media (prefers-reduced-motion: reduce) { .nova-dot { animation: none; } }

/* Panel */
.nova-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  width: min(420px, calc(100vw - 24px)); height: min(680px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--line);
}
.nova-panel[hidden] { display: none; }
@media (max-width: 520px) { .nova-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; } }
.nova-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--grad-deep-field); color: #fff; }
.nova-head strong { font-family: var(--font-head); font-size: 17px; display: block; }
.nova-sub { font-size: 12px; opacity: .8; }
.nova-head-actions button { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 6px 12px; font: 500 12px var(--font-body); cursor: pointer; margin-left: 6px; }
#nova-close { font-size: 18px; line-height: 1; padding: 4px 11px; }
.nova-status { padding: 10px 16px; background: #FFF4D6; color: #6B4E00; font-size: 13px; border-bottom: 1px solid var(--line); }
.nova-status.err { background: #FDE8E6; color: var(--coral-deep); }
.nova-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; word-wrap: break-word; }
.msg.user { white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--deep-field); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.msg.typing::after { content: '...'; animation: dots 1.2s steps(3, end) infinite; }
@keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }
.nova-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.nova-input textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: 15px/1.4 var(--font-body); max-height: 120px; }
.nova-input .btn { padding: 10px 18px; }
.nova-checkout { padding: 12px; background: #fff; border-top: 1px solid var(--line); max-height: 60%; overflow-y: auto; }
.nova-checkout[hidden] { display: none; }
.nova-checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.nova-checkout-head button { background: transparent; border: 0; color: var(--cyan-deep); font: 600 13px var(--font-body); cursor: pointer; }
.policy-card { background: #fff; border: 2px solid var(--cyan-deep); border-radius: 14px; padding: 14px; align-self: stretch; }
.policy-card .num { font-family: var(--font-mono); font-size: 18px; color: var(--deep-field); }
.policy-card small { color: var(--muted); }

/* ---------- v3 funnel ---------- */
.qf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow); }
.qf-row { display: grid; grid-template-columns: 2fr 1fr 1fr 0.8fr; gap: 14px; align-items: end; }
.qf-row-2 { grid-template-columns: 2fr 1.2fr auto; margin-top: 12px; }
.qf .field { margin: 0; }
.qf .field input, .qf .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-input); font: inherit; }
.qf-hint { display: block; font-size: 12px; color: var(--cyan-deep); min-height: 16px; margin-top: 4px; }
.qf-go { white-space: nowrap; }
.qf-error { color: var(--coral-deep); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 900px) { .qf-row, .qf-row-2 { grid-template-columns: 1fr 1fr; } .qf-dest { grid-column: 1 / -1; } .qf-go { grid-column: 1 / -1; } }
@media (max-width: 520px) { .qf-row, .qf-row-2 { grid-template-columns: 1fr; } }

.compare { margin-top: 28px; }
.compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.compare-trip { font: 600 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.compare-head h3 { margin: 0 0 4px; }
.compare-why { margin: 0; color: var(--muted); max-width: 640px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
.pc { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-card); padding: 20px 18px 18px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; display: flex; flex-direction: column; }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pc.reco { border-color: var(--cyan-deep); background: linear-gradient(180deg, #F2FDFC 0%, #fff 60%); }
.pc.selected { border-color: var(--deep-field); box-shadow: 0 0 0 3px rgba(11,29,51,.12); }
.pc-badge { position: absolute; top: -12px; left: 16px; background: var(--cyan-deep); color: #fff; font: 700 11px var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pc-name { font: 700 18px var(--font-head); margin: 4px 0 2px; }
.pc-limit { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.pc-day { font: 700 26px var(--font-head); color: var(--deep-field); line-height: 1; }
.pc-day small { font: 500 12px var(--font-body); color: var(--muted); }
.pc-total { margin: 8px 0 12px; font-size: 14px; color: var(--ink); }
.pc-total s { color: var(--muted); margin-right: 6px; }
.pc-why { font-size: 13px; color: var(--ink); margin: 0 0 14px; min-height: 36px; }
.pc .btn { margin-top: auto; width: 100%; }
.cmp-upgrades { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 6px; }
.cmp-upg-label { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; background: #fff; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--deep-field); background: #F2F5FA; }
.chip-price { color: var(--muted); font-size: 12px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; font-size: 13px; color: var(--muted); }
.trust-strip span::before { content: '\2713'; color: var(--cyan-deep); margin-right: 6px; font-weight: 700; }
.cmp-benefits { margin-top: 8px; }
.cmp-benefits summary { cursor: pointer; font-weight: 600; padding: 10px 0; }

.buy { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow); }
.buy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.buy-total { font: 700 22px var(--font-head); color: var(--deep-field); }
.buy-form .field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-input); font: inherit; }
.buy-terms { font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.buy-ok { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 14px; }
.buy-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.buy-ask { font-size: 14px; color: var(--cyan-deep); font-weight: 600; }
#buy-checkout { margin-top: 10px; }

.exit { position: fixed; inset: 0; z-index: 1000; background: rgba(11,29,51,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.exit[hidden] { display: none; }
.exit-card { position: relative; background: #fff; border-radius: var(--radius-card); padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--shadow); }
.exit-card h3 { margin: 6px 0 6px; }
.exit-card p { margin: 0 0 12px; color: var(--muted); }
.exit-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.exit-form { display: flex; gap: 8px; }
.exit-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-input); font: inherit; }
.exit-alt { font-size: 14px; margin-top: 12px; }
.exit-done { color: var(--cyan-deep); font-weight: 600; }

.lead-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.lead-lede { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.lead-form .field input, .lead-form .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-input); font: inherit; }

/* US residents: Travel Insured referral panel */
.us-panel { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); }
.us-head h3 { margin: 4px 0 8px; }
.us-sub { color: var(--muted); margin: 0 0 18px; max-width: 720px; }
.us-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .us-grid { grid-template-columns: 1fr; } }
.us-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 6px; }
.us-legal { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pc-limit small { display: block; color: var(--muted); }

/* Quiet, readable composer; minimize preserves the conversation. */
.nova-input{align-items:flex-end;padding:12px;background:#fff}
.nova-input textarea{background:#fff;color:var(--ink);min-width:0;min-height:48px;font-size:16px;box-shadow:none}
.nova-input textarea::placeholder{color:var(--muted);opacity:1}
.nova-input .btn{min-height:48px;flex:none}
#nova-close{min-width:44px;min-height:44px;font-size:26px;line-height:1}
