/* ==========================================================================
   GampInsure — Design System
   Teal + Amber · Plus Jakarta Sans / Inter · sibling to Gamp Finserv
   ========================================================================== */

:root {
  --teal: #0D6E6E;
  --teal-dark: #084F4F;
  --amber: #E07B39;
  --amber-dark: #C66A2E;
  --sage: #F0F7F4;
  --charcoal: #1A1A2E;
  --white: #FFFFFF;
  --border: #D9E7E2;
  --charcoal-80: rgba(26, 26, 46, 0.80);
  --charcoal-60: rgba(26, 26, 46, 0.60);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw-6xl: 72rem;
  --maxw-3xl: 48rem;
  --radius-xl: 0.75rem;
  --radius-md: 0.375rem;
  --shadow-card: 0 8px 24px rgba(13, 110, 110, 0.10);
  --shadow-cta: 0 4px 14px rgba(224, 123, 57, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw-6xl); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--maxw-3xl); margin: 0 auto; }
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }
.bg-sage { background: var(--sage); }
.bg-teal-dark { background: var(--teal-dark); color: var(--white); }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--teal); font-weight: 800; line-height: 1.2; }
.bg-teal-dark h1, .bg-teal-dark h2, .bg-teal-dark h3 { color: var(--white); }
h1 { font-size: 2.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.25rem; }
}
p { color: var(--charcoal-80); }
.lead { font-size: 1.05rem; color: var(--charcoal-80); max-width: 40rem; }
.center .lead { margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .lead { font-size: 1.2rem; } }
.eyebrow {
  font-size: 0.75rem; font-weight: 700; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.bg-teal-dark .eyebrow { color: var(--amber); }
.muted { color: var(--charcoal-60); font-size: 0.875rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { margin-top: 0.75rem; }

/* ---------- Badge / pill ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sage); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.78rem;
  color: var(--teal); font-weight: 600; margin-bottom: 1.25rem;
}
.badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--amber); display: inline-block; }
.tag {
  display: inline-block; background: rgba(224,123,57,0.12); color: var(--amber-dark);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-md); padding: 0.85rem 1.75rem; font-weight: 600;
  font-family: var(--font-body); font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, color .15s;
}
.btn-primary { background: var(--amber); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-secondary { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-secondary:hover { background: var(--sage); }
.bg-teal-dark .btn-secondary { border-color: rgba(255,255,255,.5); color: #fff; }
.bg-teal-dark .btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.textlink { color: var(--teal); font-weight: 600; font-size: 0.95rem; }
.textlink:hover { color: var(--amber-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.center .cta-row { justify-content: center; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.5rem; transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.card .foot { font-size: 0.85rem; color: var(--teal); font-weight: 600; margin-top: 0.5rem; }
.icon { width: 2.5rem; height: 2.5rem; color: var(--teal); margin-bottom: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  background-image: repeating-linear-gradient(45deg, var(--sage) 0px, var(--sage) 1px, transparent 1px, transparent 22px);
  padding: 4.5rem 0;
}
@media (min-width: 768px) { .hero { padding: 6rem 0; } }
.hero .micro { margin-top: 1.25rem; font-size: 0.85rem; color: var(--charcoal-60); }

/* ---------- Claim ticker ---------- */
/* #claim-ticker reserves space before site.js injects the strip (no layout shift). */
#claim-ticker { height: 44px; background: var(--teal-dark); }
.ticker-strip { display: flex; overflow: hidden; height: 44px; background: var(--teal-dark); color: #fff; align-items: center; font-size: 0.875rem; }
.ticker-track { display: flex; flex-shrink: 0; align-items: center; min-width: 100%; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0 1.25rem; }
.ticker-item .ph-val { background: rgba(224,123,57,0.25); }
.ticker-link { color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ticker-link:hover, .ticker-link:focus-visible { color: #fff; }
.ticker-source { opacity: 0.6; font-size: 0.8125rem; }
.ticker-sep { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker-scroll 45s linear infinite; }
  .ticker-strip:hover .ticker-track,
  .ticker-strip:focus-within .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-strip { overflow-x: auto; } /* static, scrollable — nothing moves */
  .ticker-track[aria-hidden="true"] { display: none; }
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 767px) { #claim-ticker, .ticker-strip { height: 40px; } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--sage); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.trustbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: center; }
.trustbar li { font-size: 0.85rem; font-weight: 600; color: var(--teal); display: flex; align-items: center; gap: 0.4rem; }
.trustbar li::before { content: "✓"; color: var(--amber); font-weight: 800; }

/* ---------- Claim promise columns ---------- */
.promise-col .num { color: var(--amber); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.promise-col h3 { color: #fff; margin: 0.4rem 0 0.6rem; }
.promise-col p, .promise-col li { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.promise-col ul { margin-top: 0.75rem; padding-left: 1.1rem; }
.promise-col li { margin-bottom: 0.35rem; }

/* ---------- Comparison / covered tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
table.tbl th, table.tbl td { border: 1px solid var(--border); padding: 0.85rem 1rem; text-align: left; vertical-align: top; }
table.tbl thead th { background: var(--teal); color: #fff; font-family: var(--font-display); }
table.tbl .hl { background: var(--sage); }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.col-list { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; }
.col-list h3 { margin-bottom: 0.75rem; }
.col-list ul { list-style: none; }
.col-list li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; font-size: 0.95rem; }
.col-list.good li::before { content: "✓"; color: var(--teal); position: absolute; left: 0; font-weight: 800; }
.col-list.bad li::before { content: "✕"; color: var(--amber-dark); position: absolute; left: 0; font-weight: 800; }

/* ---------- Checklist grid ---------- */
.checkgrid { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .checkgrid { grid-template-columns: 1fr 1fr; } }
.checkgrid li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
.checkgrid li::before { content: "✓"; color: var(--amber); position: absolute; left: 0; font-weight: 800; }

/* ---------- Advisor card ---------- */
.advisor { text-align: center; }
.advisor img, .advisor .ph {
  width: 6rem; height: 6rem; border-radius: 999px; object-fit: cover; margin: 0 auto 1rem;
  background: var(--sage); display: flex; align-items: center; justify-content: center; color: var(--teal); font-weight: 800; font-size: 1.5rem;
}
.advisor .spec { font-size: 0.9rem; color: var(--charcoal-80); }
.advisor .cred { font-size: 0.8rem; color: var(--charcoal-60); margin: 0.35rem 0; }

/* ---------- Claim story ---------- */
.story { border-left: 4px solid var(--amber); background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: var(--radius-xl); padding: 1.5rem; }
.story .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-dark); font-weight: 700; margin-top: 0.75rem; }
.story .lbl:first-child { margin-top: 0; }
.story p { font-size: 0.95rem; margin-top: 0.2rem; }

/* ---------- Insurer strip ---------- */
.insurers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .insurers { grid-template-columns: repeat(4, 1fr); } }
.insurers .tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; height: 5rem; display: flex; align-items: center; justify-content: center; }
.insurers .tile img { max-height: 3rem; width: auto; object-fit: contain; }
.insurers .tile.ph { color: var(--charcoal-60); font-size: 0.8rem; font-style: italic; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; color: var(--teal); font-family: var(--font-display); display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.3rem; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 1.1rem; font-size: 0.95rem; }

/* ---------- Callout / highlight ---------- */
.callout { background: var(--sage); border-radius: var(--radius-xl); padding: 1.5rem; }
.callout.amber { background: #fff; border: 1px solid var(--amber); border-left: 4px solid var(--amber); }
.callout h3 { margin-bottom: 0.5rem; }

/* ---------- Article ---------- */
.article { max-width: var(--maxw-3xl); margin: 0 auto; }
.article h2 { margin: 2.25rem 0 0.75rem; scroll-margin-top: 6rem; }
.article h3 { margin: 1.5rem 0 0.5rem; }
.article p { margin-bottom: 1rem; }
.article ol, .article ul { margin: 0 0 1rem 1.25rem; }
.article li { margin-bottom: 0.5rem; }
.toc { background: var(--sage); border-radius: var(--radius-xl); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.toc strong { display: block; margin-bottom: 0.5rem; color: var(--teal); font-family: var(--font-display); }
.toc a { color: var(--teal); font-weight: 500; }
.toc a:hover { color: var(--amber-dark); }
.byline { font-size: 0.85rem; color: var(--charcoal-60); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.75rem 0; margin: 1.25rem 0; }

/* ---------- Flow diagram ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.5rem 0; justify-content: center; }
.flow .node { border: 1px solid var(--teal); color: var(--teal); border-radius: var(--radius-md); padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.9rem; background: #fff; }
.flow .node.you { border-color: var(--amber); color: var(--amber-dark); box-shadow: 0 0 0 3px rgba(224,123,57,0.15); }
.flow .arrow { color: var(--amber); font-weight: 800; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,110,110,0.15); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; font-size: 0.9rem; font-weight: 600; }
.chip.active { background: var(--amber); color: #fff; border-color: var(--amber); }
.consent { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--charcoal-80); align-items: flex-start; }
.consent input { width: auto; margin-top: 0.2rem; }
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.75rem; max-width: 34rem; margin: 0 auto; }

/* ---------- Placeholder marker ---------- */
.ph-val { background: rgba(224,123,57,0.14); border-bottom: 1px dashed var(--amber); padding: 0 2px; font-style: normal; }

/* ---------- Infographic figures ---------- */
.figure { margin: 2rem 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.figure figcaption { font-size: 0.85rem; color: var(--charcoal-60); text-align: center; margin-top: 0.6rem; }

/* ---------- Split hero (main text left, infographic right) ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .split h1 { font-size: 2.6rem; }
}
.split .figure { margin: 0; }

/* ---------- Header ---------- */
.topbar { background: var(--teal-dark); color: rgba(255,255,255,0.85); font-size: 0.78rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 1.5rem; gap: 1rem; }
.topbar a { color: #fff; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 800; color: var(--teal); font-size: 1.25rem; }
.logo .mark { width: 1.9rem; height: 1.9rem; border-radius: 0.4rem; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.logo .mark span { color: var(--amber); }
nav.main { display: none; align-items: center; gap: 1.25rem; }
nav.main a { font-size: 0.92rem; font-weight: 500; color: var(--charcoal); }
nav.main a:hover { color: var(--teal); }
@media (min-width: 940px) { nav.main { display: flex; } }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.5rem 0.7rem; cursor: pointer; }
@media (min-width: 940px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 0.5rem 0 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.6rem 0; font-weight: 500; }

/* ---------- WhatsApp CTA band ---------- */
.cta-band { background: var(--teal-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .sub { color: rgba(255,255,255,0.75); margin-top: 0.75rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--teal-dark); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; font-size: 0.9rem; }
footer.site h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
footer.site a { color: rgba(255,255,255,0.8); }
footer.site a:hover { color: #fff; }
footer.site .cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 0.5rem; }
footer.site .compliance { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 0.75rem; line-height: 1.7; }
footer.site .chan { margin-bottom: 0.6rem; }
footer.site .chan b { color: #fff; display: block; font-size: 0.8rem; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.award-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; background: var(--sage); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.25rem 1.5rem; }
.award-ribbon img { width: 7rem; height: 5rem; object-fit: cover; border-radius: var(--radius-md); }

/* ---------- Chat widget (Aanya) ---------- */
#gi-chat-bubble {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  width: 3.5rem; height: 3.5rem; border-radius: 999px; border: none;
  background: var(--teal); color: #fff; font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(13, 110, 110, 0.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
#gi-chat-bubble:hover { background: var(--teal-dark); transform: translateY(-2px); }

#gi-chat-window {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 9999;
  width: min(23rem, calc(100vw - 2rem)); height: min(32rem, calc(100vh - 8rem));
  background: #fff; border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(26, 26, 46, 0.28);
  border: 1px solid var(--border);
}
#gi-chat-window[hidden] { display: none; }

.gi-chat-header {
  background: var(--teal); color: #fff; padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.gi-chat-avatar {
  width: 2.1rem; height: 2.1rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.gi-chat-title { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.gi-chat-subtitle { font-size: 0.72rem; opacity: 0.85; }
#gi-chat-close {
  margin-left: auto; background: none; border: none; color: #fff; opacity: 0.85;
  font-size: 1rem; cursor: pointer; padding: 0.25rem;
}
#gi-chat-close:hover { opacity: 1; }

.gi-chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem; background: var(--sage);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.gi-chat-greeting { font-size: 0.85rem; color: var(--charcoal-60); text-align: center; margin-top: 1rem; }
.gi-chat-bubble {
  max-width: 80%; padding: 0.55rem 0.85rem; border-radius: var(--radius-xl);
  font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap;
}
.gi-chat-user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 0.25rem; }
.gi-chat-model { align-self: flex-start; background: #fff; color: var(--charcoal); border: 1px solid var(--border); border-bottom-left-radius: 0.25rem; }

#gi-chat-lead:empty { display: none; }
#gi-chat-lead { padding: 0 0.75rem; }

.gi-chat-form {
  display: flex; gap: 0.5rem; padding: 0.75rem; background: #fff; border-top: 1px solid var(--border);
}
.gi-chat-form input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem; font-family: var(--font-body); font-size: 0.85rem; outline: none;
}
.gi-chat-form input:focus { border-color: var(--teal); }
.gi-chat-form button { padding: 0.6rem 0.9rem; }

@media (max-width: 480px) {
  #gi-chat-window { right: 1rem; bottom: 5rem; }
  #gi-chat-bubble { right: 1rem; }
}
