/* ===================================================================
   Sankalp Times — design tokens
   Palette: deep navy ink, cool paper background, muted brass accent.
   Type: Fraunces (serif, editorial authority) + Inter (body/UI).
=================================================================== */
:root{
  --ink:        #12233D;
  --ink-soft:   #2B3B54;
  --slate:      #56637A;
  --slate-soft: #8590A3;
  --paper:      #F5F7FA;
  --surface:    #FFFFFF;
  --line:       #DEE3EA;
  --line-soft:  #EBEEF2;
  --brass:      #B9872F;
  --brass-dark: #93691F;
  --brass-tint: #F6ECD9;
  --good:       #1F7A4D;
  --good-tint:  #E7F3EC;
  --warn:       #A8431F;
  --warn-tint:  #FBEAE3;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-card: 0 1px 2px rgba(18,35,61,.06), 0 8px 24px -12px rgba(18,35,61,.18);
  --container: 1120px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
  color:var(--ink);
  line-height:1.18;
  margin:0 0 .5em;
}
p{ margin:0 0 1.3em; max-width:70ch; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
:focus-visible{ outline:2.5px solid var(--brass); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }

/* ---------- Topbar / header ---------- */
.site-header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:40;
}
.site-header__row{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand__mark{
  width:34px; height:34px; border-radius:9px;
  background:var(--ink); color:var(--brass);
  display:flex; align-items:center; justify-content:center;
}
.brand__mark svg{ width:18px; height:18px; }
.brand__text{ display:flex; flex-direction:column; }
.brand__name{ font-family:'Fraunces',serif; font-weight:600; font-size:1.18rem; color:var(--ink); }
.brand__tagline{ font-size:.78rem; color:var(--slate); }
.site-nav{ display:flex; gap:28px; }
.site-nav a{
  text-decoration:none; color:var(--ink-soft); font-size:.95rem; font-weight:500;
  padding-bottom:2px; border-bottom:2px solid transparent;
}
.site-nav a:hover{ border-color:var(--brass); }
.nav-toggle{ display:none; background:none; border:0; padding:8px; cursor:pointer; }
.nav-toggle svg{ width:24px; height:24px; color:var(--ink); }

.ad-slot{ display:flex; justify-content:center; margin:0 auto; overflow:hidden; }
.ad-slot--global_header{ background:var(--surface); border-bottom:1px solid var(--line-soft); padding:8px 0; }
.ad-slot--global_footer{ padding:20px 0 0; }
.ad-slot--global_body_top, .ad-slot--global_body_bottom{ max-width:var(--container); margin:32px auto; padding:0 24px; }
.ad-slot--inline{ max-width:720px; margin:28px auto; padding:0 24px; }

/* ---------- Chat strip (homepage, below header) ---------- */
.chat-strip{ background:var(--ink); }
.chat-strip__row{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 24px; flex-wrap:wrap; }
.chat-strip__text{ color:#D9DFEA; font-size:.94rem; }

/* ---------- Hero (homepage) ---------- */
.hero{
  padding:64px 0 56px;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(185,135,47,.14), transparent 60%),
    var(--paper);
}
.hero__grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; }
.hero__eyebrow{ color:var(--brass-dark); font-weight:600; font-size:.95rem; margin-bottom:14px; }
.hero h1{ font-size:clamp(2.1rem,4vw,3.1rem); max-width:16ch; }
.hero__lede{ font-size:1.12rem; color:var(--slate); max-width:52ch; }
.hero__stats{ display:flex; gap:28px; margin-top:24px; }
.hero__stat b{ display:block; font-family:'Fraunces',serif; font-size:1.6rem; color:var(--ink); }
.hero__stat span{ font-size:.85rem; color:var(--slate); }
.hero__panel{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-l);
  box-shadow:var(--shadow-card); padding:28px; border-top:4px solid var(--brass);
}
.hero__panel h3{ font-size:1.05rem; margin-bottom:6px; }
.hero__panel p{ font-size:.92rem; color:var(--slate); margin-bottom:18px; }

/* ---------- Article grid / cards ---------- */
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:56px 0 24px; }
.section-head h2{ font-size:1.7rem; }
.section-head p{ color:var(--slate); margin:0; }
.article-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; padding-bottom:40px; }
.a-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:24px; text-decoration:none; display:flex; flex-direction:column; gap:12px;
  transition:transform .18s ease, border-color .18s ease;
}
.a-card:hover{ transform:translateY(-3px); border-color:var(--brass); }
.a-card__icon{
  width:40px; height:40px; border-radius:10px; background:var(--brass-tint); color:var(--brass-dark);
  display:flex; align-items:center; justify-content:center;
}
.a-card__icon svg{ width:20px; height:20px; }
.a-card h3{ font-size:1.12rem; margin:0; }
.a-card p{ font-size:.92rem; color:var(--slate); margin:0; }
.a-card__meta{ font-size:.82rem; color:var(--slate-soft); margin-top:auto; }

/* ---------- Article page ---------- */
.article-hero{ padding:48px 0 8px; border-bottom:1px solid var(--line); background:var(--surface); }
.article-hero .breadcrumb{ font-size:.85rem; color:var(--slate); margin-bottom:16px; }
.article-hero .breadcrumb a{ text-decoration:none; color:var(--slate); }
.article-hero h1{ font-size:clamp(1.9rem,3.4vw,2.7rem); max-width:22ch; }
.article-hero__meta{ display:flex; gap:18px; color:var(--slate); font-size:.9rem; margin:14px 0 32px; }
.article-body{ max-width:720px; margin:0 auto; padding:44px 24px 64px; }
.article-body p{ font-size:1.06rem; color:var(--ink-soft); max-width:none; }
.article-body h2{ font-size:1.5rem; margin-top:1.6em; }
.article-body h3{ font-size:1.2rem; margin-top:1.4em; }

.callout{
  background:var(--brass-tint); border-left:3px solid var(--brass);
  border-radius:var(--radius-s); padding:18px 20px; margin:28px 0; font-size:.98rem; color:var(--ink-soft);
}
.callout p{ margin:0; }

/* ---------- Comparison table ---------- */
.compare-wrap{ overflow-x:auto; margin:32px 0; border:1px solid var(--line); border-radius:var(--radius-m); }
table.compare-table{ width:100%; border-collapse:collapse; min-width:640px; background:var(--surface); }
.compare-table th, .compare-table td{ padding:14px 16px; text-align:left; font-size:.94rem; border-bottom:1px solid var(--line-soft); }
.compare-table thead th{ background:var(--ink); color:#fff; font-family:'Fraunces',serif; font-weight:600; font-size:.98rem; }
.compare-table tbody tr:last-child td{ border-bottom:none; }
.compare-table tbody tr:hover{ background:var(--paper); }
.compare-table .official-link{
  display:inline-flex; align-items:center; gap:6px; background:var(--ink); color:#fff;
  padding:7px 14px; border-radius:999px; font-size:.85rem; text-decoration:none; white-space:nowrap;
}
.compare-table .official-link:hover{ background:var(--brass-dark); }

/* ---------- Calculator tool card ---------- */
.tool-card{
  background:var(--surface); border:1px solid var(--line); border-top:4px solid var(--brass);
  border-radius:var(--radius-m); box-shadow:var(--shadow-card); padding:28px; margin:36px 0;
}
.tool-card h3{ font-size:1.2rem; display:flex; align-items:center; gap:10px; }
.tool-card h3 svg{ width:22px; height:22px; color:var(--brass-dark); }
.tool-card__sub{ color:var(--slate); font-size:.92rem; margin-bottom:20px; }
.tool-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:.85rem; font-weight:600; color:var(--ink-soft); }
.field input[type=number], .field input[type=range], .field select{
  width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-s);
  font-size:.98rem; font-family:inherit; background:var(--paper); color:var(--ink);
}
.field input[type=range]{ padding:0; accent-color:var(--brass); }
.field .field__value{ font-size:.82rem; color:var(--brass-dark); font-weight:600; }
.tool-result{
  margin-top:22px; padding:18px 20px; background:var(--paper); border-radius:var(--radius-s);
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.tool-result__item b{ display:block; font-family:'Fraunces',serif; font-size:1.35rem; color:var(--ink); }
.tool-result__item span{ font-size:.8rem; color:var(--slate); }
.tool-card__note{ font-size:.78rem; color:var(--slate-soft); margin-top:14px; }

/* progress / bars used for coverage-type comparisons */
.bar-row{ display:flex; align-items:center; gap:14px; margin:10px 0; }
.bar-row__label{ width:180px; font-size:.9rem; color:var(--ink-soft); flex-shrink:0; }
.bar-track{ flex:1; height:9px; background:var(--line-soft); border-radius:999px; overflow:hidden; }
.bar-fill{ height:100%; background:linear-gradient(90deg,var(--brass),var(--brass-dark)); border-radius:999px; }
.bar-row__value{ width:56px; text-align:right; font-size:.85rem; font-weight:600; color:var(--ink); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:999px; font-weight:600; font-size:.95rem;
  text-decoration:none; border:1px solid transparent; cursor:pointer; font-family:inherit;
}
.btn--primary{ background:var(--ink); color:#fff; }
.btn--primary:hover{ background:var(--brass-dark); }
.btn--brass{ background:var(--brass); color:#fff; }
.btn--brass:hover{ background:var(--brass-dark); }
.btn--outline{ background:transparent; border-color:var(--line); color:var(--ink); }
.btn--outline:hover{ border-color:var(--brass); color:var(--brass-dark); }
.btn--block{ width:100%; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:#D9DFEA; margin-top:64px; }
.site-footer .container{ padding:48px 24px 28px; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; }
.site-footer h4{ color:#fff; font-family:'Inter',sans-serif; font-size:.9rem; margin-bottom:14px; }
.site-footer p{ color:#AEB8CB; font-size:.9rem; max-width:44ch; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.site-footer a{ color:#C6CEDF; text-decoration:none; font-size:.9rem; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding:18px 24px; text-align:center;
  color:#8B96AD; font-size:.82rem;
}

/* ---------- Policy pages ---------- */
.page-body{ max-width:720px; margin:0 auto; padding:56px 24px 72px; }
.page-body h1{ font-size:2rem; }
.page-body p{ color:var(--ink-soft); font-size:1.02rem; }

/* ---------- Product / pay page ---------- */
.product-wrap{ max-width:640px; margin:0 auto; padding:56px 24px 72px; }
.product-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-l);
  box-shadow:var(--shadow-card); overflow:hidden;
}
.product-card__media{ background:var(--brass-tint); }
.product-card__media img{ width:100%; }
.product-card__body{ padding:28px; }
.product-card h1{ font-size:1.5rem; }
.product-card__price{ color:var(--good); font-weight:600; margin-bottom:18px; }

/* ---------- Live chat widget ---------- */
.chat-launcher{
  position:fixed; right:22px; bottom:22px; z-index:80;
  background:var(--ink); color:#fff; border:none; border-radius:999px;
  padding:14px 20px; display:flex; align-items:center; gap:10px;
  box-shadow:0 10px 30px -8px rgba(18,35,61,.45); cursor:pointer; font-weight:600; font-size:.92rem;
  font-family:inherit;
}
.chat-launcher:hover{ background:var(--brass-dark); }
.chat-launcher svg{ width:18px; height:18px; }
.chat-window{
  position:fixed; right:22px; bottom:22px; z-index:90; width:360px; max-width:calc(100vw - 32px);
  height:520px; max-height:calc(100vh - 100px);
  background:var(--surface); border-radius:var(--radius-l); box-shadow:0 24px 60px -12px rgba(18,35,61,.4);
  display:none; flex-direction:column; overflow:hidden; border:1px solid var(--line);
}
.chat-window.is-open{ display:flex; }
.chat-header{
  background:var(--ink); color:#fff; padding:16px 18px; display:flex; align-items:center; justify-content:space-between;
}
.chat-header__who{ display:flex; align-items:center; gap:10px; }
.chat-avatar{ width:34px; height:34px; border-radius:50%; background:var(--brass); display:flex; align-items:center; justify-content:center; font-weight:700; }
.chat-header__name{ font-weight:600; font-size:.95rem; }
.chat-header__status{ font-size:.75rem; color:#B9C3D6; }
.chat-close{ background:none; border:none; color:#D9DFEA; cursor:pointer; padding:4px; }
.chat-close svg{ width:20px; height:20px; }
.chat-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--paper); }
.chat-msg{ max-width:80%; padding:10px 13px; border-radius:14px; font-size:.9rem; line-height:1.45; }
.chat-msg--bot{ align-self:flex-start; background:var(--surface); border:1px solid var(--line); border-bottom-left-radius:4px; }
.chat-msg--user{ align-self:flex-end; background:var(--ink); color:#fff; border-bottom-right-radius:4px; }
.chat-msg img{ border-radius:10px; margin-top:6px; max-width:200px; }
.chat-product-card{
  align-self:flex-start; background:var(--surface); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; max-width:82%; flex-shrink:0;
}
.chat-product-card img{ width:100%; display:block; height:120px; object-fit:cover; }
.chat-product-card__body{ padding:12px; }
.chat-product-card__body p{ margin:0 0 10px; }
.chat-product-card__body a{ pointer-events:auto; position:relative; z-index:2; }
.chat-product-card__body p{ margin:0 0 10px; font-size:.88rem; font-weight:600; color:var(--ink); }
.chat-form{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:var(--surface); }
.chat-form input[type=text]{
  flex:1; border:1px solid var(--line); border-radius:999px; padding:10px 14px; font-size:.9rem; font-family:inherit;
}
.chat-form button{
  background:var(--ink); color:#fff; border:none; border-radius:999px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
}
.chat-form button svg{ width:17px; height:17px; }
.chat-attach{
  background:var(--paper); border:1px solid var(--line); border-radius:999px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; color:var(--slate);
}
.chat-attach svg{ width:17px; height:17px; }
.ad-slot--chat_widget{ padding:10px 16px; background:var(--surface); border-top:1px solid var(--line-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .hero__grid{ grid-template-columns:1fr; }
  .article-grid{ grid-template-columns:repeat(2,1fr); }
  .site-footer .container{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px){
  .site-nav{
    position:fixed; inset:64px 0 0 0; background:var(--surface); flex-direction:column;
    padding:24px; gap:8px; transform:translateX(100%); transition:transform .25s ease; overflow-y:auto;
  }
  .site-nav.is-open{ transform:translateX(0); }
  .site-nav a{ padding:12px 4px; border-bottom:1px solid var(--line-soft); width:100%; }
  .nav-toggle{ display:flex; }
  .article-grid{ grid-template-columns:1fr; }
  .tool-grid{ grid-template-columns:1fr; }
  .tool-result{ grid-template-columns:1fr 1fr; }
  .site-footer .container{ grid-template-columns:1fr; }
  .chat-window{ width:calc(100vw - 24px); right:12px; bottom:12px; height:70vh; }
  .chat-launcher{ right:12px; bottom:12px; padding:12px 16px; }
  .chat-strip__row{ justify-content:center; text-align:center; }
  .bar-row__label{ width:120px; font-size:.82rem; }
}