/* ─── Shared styles for content + tool pages ─── */

.page-hero {
  padding: calc(var(--header-h) + 56px) 0 40px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 10px 0 14px;
  max-width: 22ch;
}
.page-hero .lead { font-size: 1.08rem; color: var(--text-soft); max-width: 62ch; }

.crumbs { font-size: .88rem; color: var(--text-soft); margin-bottom: 4px; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 40px 0 14px;
  line-height: 1.3;
}
.prose h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.75; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); }

.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 32px; } }

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
@media (max-width: 900px) { .side-card { position: static; } }
.side-card h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.1rem; }
.side-card p { color: var(--text-soft); font-size: .95rem; line-height: 1.6; margin: 0 0 16px; }

/* ─── Calculator UI ─── */
.calc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin: 8px 0 32px;
}
.calc-field { margin-bottom: 18px; }
.calc-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.calc-field .hint { display: block; font-weight: 400; color: var(--text-soft); font-size: .85rem; margin-top: 3px; }
.calc-input-wrap { position: relative; display: flex; align-items: center; }
.calc-input-wrap .rupee {
  position: absolute; left: 14px; color: var(--text-soft); font-weight: 600; pointer-events: none;
}
.calc input[type="number"], .calc input[type="text"], .calc select {
  width: 100%;
  padding: 13px 14px 13px 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
}
.calc select, .calc input.no-prefix { padding-left: 14px; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--primary); }
.calc input[type="range"] { width: 100%; accent-color: var(--primary); padding: 0; }

.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr; } }

.calc-result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.calc-result[hidden] { display: none; }

.split-bar {
  display: flex; height: 34px; border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border);
}
.split-bar span {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700; min-width: 0;
  transition: flex-basis .3s ease;
}
.seg-needs { background: var(--primary); }
.seg-wants { background: var(--accent); }
.seg-save  { background: var(--secondary); }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr; } }
.result-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg-soft);
}
.result-box .label { font-size: .82rem; color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.result-box .value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 6px 0 2px; }
.result-box .note { font-size: .84rem; color: var(--text-soft); line-height: 1.5; }

.result-headline {
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.result-headline .big { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--primary-dark); }
.result-headline .sub { color: var(--text-soft); font-size: .95rem; margin-top: 4px; }

.verdict { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.6; margin-top: 16px; }
.verdict.good { background: #e8f7ee; border: 1px solid #b6e2c6; color: #14532d; }
.verdict.warn { background: #fff6e5; border: 1px solid #ffd894; color: #7a4a00; }
.verdict.bad  { background: #fdecea; border: 1px solid #f5c2bd; color: #7a1c14; }

.disclaimer {
  font-size: .87rem; color: var(--text-soft); line-height: 1.65;
  border-left: 3px solid var(--border); padding: 4px 0 4px 16px; margin: 28px 0;
}

/* ─── Tool cards ─── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.tool-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card .ico { font-size: 1.9rem; }
.tool-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 12px 0 8px; }
.tool-card p { color: var(--text-soft); font-size: .95rem; line-height: 1.6; margin: 0; }

/* ─── Comparison table ─── */
.cmp-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
.cmp-table th, .cmp-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp-table th { background: var(--bg-soft); font-weight: 700; }
.cmp-table tr:last-child td { border-bottom: none; }

.honest-note {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0;
}
.honest-note h3 { margin-top: 0; font-family: var(--font-display); font-size: 1.05rem; }
.honest-note p { margin-bottom: 0; color: var(--text-soft); font-size: .95rem; line-height: 1.7; }

.faq-block { margin-top: 44px; }
.faq-block details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 12px; background: var(--bg-card);
}
.faq-block summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: '+'; float: right; color: var(--primary); font-weight: 700; }
.faq-block details[open] summary::after { content: '−'; }
.faq-block details p { margin: 12px 0 0; color: var(--text-soft); line-height: 1.7; font-size: .95rem; }

.simple-footer {
  border-top: 1px solid var(--border); margin-top: 60px;
  padding: 30px 0; text-align: center; color: var(--text-soft); font-size: .9rem;
}
.simple-footer a { color: var(--text-soft); margin: 0 10px; }
