:root {
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #0f172a;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit }

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section { padding: 28px 0 20px }
.section-sm { padding: 48px 0 }

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.3rem, 4vw, 4.2rem) }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.8rem) }
h3 { font-size: 1.2rem }

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
 padding: 14px 22px;
 border-radius: 14px; /* ⬅️ key change: modern, not pill */
 font-weight: 700;
 font-size: 0.98rem;
 line-height: 1;
 transition: all 0.2s ease;
 cursor: pointer;
}

.btn-primary {
 background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
 color: #fff;
 border: none;
 box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}
.btn-primary:hover {
 transform: translateY(-2px);
 box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}
.btn:focus-visible {
 outline: 2px solid rgba(20, 184, 166, 0.35);
 outline-offset: 3px;
}
.btn-secondary {
 background: rgba(255, 255, 255, 0.72);
 color: var(--text);
 border: 1px solid var(--border);
 backdrop-filter: blur(8px);
 -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
 transform: translateY(-2px);
 box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
 border-color: #cbd5e1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1px;
  font-weight: 800;
  font-size: 1.3rem;
}
.brand-logo {
 height: 60px;
 width: auto;
 display: block;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
 padding: 56px 0 36px;
 position: relative;
 overflow: hidden;
 background:
   radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.14), transparent 22%),
   radial-gradient(circle at 15% 15%, rgba(15, 118, 110, 0.12), transparent 20%),
   radial-gradient(circle at 50% 100%, rgba(0, 200, 150, 0.08), transparent 28%),
   linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}
.hero::before {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
 pointer-events: none;
 z-index: 0;
}
.hero h1 {
 margin-bottom: 16px;
 line-height: 1.08;
}
.hero p {
 margin-bottom: 24px;
}

.hero-grid {
 display: grid;
 grid-template-columns: 1.25fr 0.75fr;
 gap: 48px;
 align-items: start;
}

.hero-card {
 padding: 28px;
 border: 1px solid rgba(226, 232, 240, 0.9);
 border-radius: 20px;
 background: rgba(255, 255, 255, 0.72);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 box-shadow:
   0 20px 50px rgba(15, 23, 42, 0.08),
   0 8px 20px rgba(15, 118, 110, 0.06);
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 660px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 26px;
}

.mini-stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.mini-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.calculator-card { padding: 24px }

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-size: .95rem;
  font-weight: 700;
  color: var(--secondary);
}

input, select, textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,118,110,.12);
}

.result-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfb 100%);
}

.result-big {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin: 16px 0 20px;
}

.result-item {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.result-item span {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.result-item strong {
  font-size: 1.05rem;
}

.chart-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

canvas {
  width: 100%;
  height: 240px;
  display: block;
}

.tools-grid, .blog-grid, .page-grid, .scenario-grid, .footer-grid {
  display: grid;
  gap: 20px;
}

.tools-grid {
 grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
  grid-template-columns: repeat(3,1fr);
}

.scenario-grid {
  grid-template-columns: repeat(3,1fr);
}

.page-grid {
  grid-template-columns: repeat(2,1fr);
}

.tool-card, .blog-card, .info-card, .scenario-card, .adsense-box {
 padding: 22px;
 border: 1px solid var(--border);
 border-radius: var(--radius);
 background: #fff;
 box-shadow: var(--shadow);
 transition: all 0.25s ease;
 position: relative; /* 👈 ADD THIS LINE */
}
.tool-card::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: inherit;
 background: linear-gradient(135deg, transparent, rgba(20,184,166,0.12));
 opacity: 0;
 transition: opacity 0.25s ease;
 pointer-events: none;
}
.tool-card:hover::after {
 opacity: 1;
}

.tool-card p, .blog-card p, .info-card p, .scenario-card p {
  margin-bottom: 0;
}

.tool-card, .blog-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-card:hover, .blog-card:hover {
 transform: translateY(-6px) scale(1.01);
 box-shadow:
   0 20px 40px rgba(15, 23, 42, 0.12),
   0 8px 20px rgba(20, 184, 166, 0.08);
}
.featured-tool {
  border: 2px solid #00C896;
  box-shadow: 0 5px 20px rgba(0, 200, 150, 0.15);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.calculator-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.calc-tab {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.calc-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.calc-panel { display: none }
.calc-panel.active { display: block }

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.example-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.example-btn:hover {
  border-color: var(--primary);
}

.newsletter {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #134e4a);
  color: #fff;
  box-shadow: var(--shadow);
}

.newsletter p {
  color: rgba(255,255,255,.82);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.newsletter-form input {
  flex: 1 1 260px;
  border: none;
}

.adsense-box {
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.adsense-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 50px;
  background: #fcfdfd;
}

.footer-grid {
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.muted { color: var(--muted) }

.page-header {
  padding: 56px 0 16px;
}

.page-block {
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-weight: 700;
  font-size: .86rem;
}

.disclaimer { font-size: .92rem }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.page-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
}

@media (max-width:1000px) {
 .hero-grid,
 .split,
 .calculator-grid,
 .page-grid,
 .footer-grid,
 .tools-grid,
 .blog-grid,
 .scenario-grid,
 .post-grid {
   grid-template-columns: 1fr;
 }

 .mini-stats {
   grid-template-columns: 1fr;
 }
}

@media (max-width:640px) {
  .section { padding: 56px 0 }
  .hero { padding-top: 54px }
  .btn, .calc-tab { width: 100% }
  .result-grid { grid-template-columns: 1fr }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
.hero-card h3 a {
 color: inherit;
 text-decoration: none;
}
.hero-card h3 a:hover {
 text-decoration: underline;
}
.logo img {
 height: 58px;
}
.hero-logo {
 text-align: center;
 margin-bottom: 20px;
}
.hero-logo img {
 height: 80px;
}
.feature-list {
 margin-top: 12px;
 padding-left: 0;
 list-style: none;
 font-size: 14px;
 color: #475569;
}
.feature-list li {
 margin-bottom: 6px;
}
.logo {
 display: flex;
 align-items: center;
 gap: 1px;
}
.logo img {
 height: 60px !important;
}
.logo-text {
 font-weight: 700;   /* makes it bold like before */
 font-size: 18px;
 line-height: 1;
}.page-content {
 max-width: 1200px;
 margin: 0 auto;
 padding: 40px 32px 60px;
}
.page-hero {
 margin-bottom: 32px;
}
.page-hero h1 {
 font-size: 44px;
 line-height: 1.2;
 margin-bottom: 12px;
}
.page-hero p {
 font-size: 18px;
 color: #475569;
 max-width: 760px;
}
.content-card {
 max-width: 760px;
 margin: 32px auto 0;
 padding: 0;
 border: none;
 background: transparent;
}
.content-card h2 {
 font-size: 20px;
 margin-top: 32px;
 margin-bottom: 6px;
 font-weight: 600;
 color: #0f172a;
}
.content-card p {
 font-size: 16px;
 line-height: 1.7;
 color: #475569;
 margin-bottom: 16px;
}
.content-card a {
 color: var(--primary);
 font-weight: 600;
}
.content-card a:hover {
 text-decoration: underline;
}
.page-header {
 padding: 20px 0 5px 0 !important;
}
.page-header h1 {
 margin-bottom: 8px !important;
}
.page-header p {
 margin-bottom: 10px !important;
}
.calculator-section {
 margin-top: 5px !important;
}
/* 🔥 Kill the gap between header and calculator section */
.calculator-section {
 margin-top: 0 !important;
 padding-top: 0 !important;
}
/* Reduce spacing before section titles */
.calculator-section h2,
.calculator-section h3 {
 margin-top: 5px !important;
}
/* Tighten spacing inside header even more */
.page-header {
 padding-bottom: 0 !important;
}
.page-header p {
 margin-bottom: 5px !important;
}
.page-header {
 padding: 15px 0 0 0 !important;
}
.page-header p {
 margin-bottom: 0 !important;
}
.calculator-section {
 margin-top: 0 !important;
 padding-top: 0 !important;
}
.calculator-section h2,

.calculator-section h3 {

  margin-top: 5px !important;

}
.page-header h1 {
 margin-bottom: 0 !important;
 line-height: 1.05;
}
.page-header p {
 margin-bottom: 0 !important;
}
.page-header h1 {
 margin-bottom: 2px !important;
 line-height: 1.05 !important;
}
.page-header p {
 margin-top: 0 !important;
 margin-bottom: 0 !important;
}
.page-header {
 padding-bottom: 0 !important;
}

/* Calculator mobile fix */
.calculator-container {
 display: flex;
 gap: 15px;
}
/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {

 html, body {
   overflow-x: hidden;
   width: 100%;
 }

 * {
   box-sizing: border-box;
 }

 .container,
 .hero .container,
 .page-header .container,
 .calculator-section .container,
 .results-section .container,
 .tools-section .container,
 .blog-section .container {
   width: 100%;
   max-width: 100%;
   padding-left: 16px;
   padding-right: 16px;
   margin-left: auto;
   margin-right: auto;
 }

 /* HEADER / NAV */
 .site-header .container,
 header .container,
 .nav-container {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
 }

 .brand,
 .logo {
   max-width: calc(100% - 60px);
 }

 .menu-toggle {
   display: block;
   background: none;
   border: none;
   font-size: 28px;
   line-height: 1;
   padding: 6px 8px;
   cursor: pointer;
 }

 .nav-links {
   display: none !important;
   width: 100%;
   flex-direction: column;
   align-items: flex-start;
   gap: 10px;
   margin-top: 10px;
   padding-top: 10px;
   border-top: 1px solid #e5e7eb;
 }

 .nav-links.active {
   display: flex !important;
 }

 .nav-links a {
   display: block;
   width: 100%;
   font-size: 16px;
   line-height: 1.4;
   padding: 6px 0;
 }

 /* HERO */
 .hero,
 .page-header {
   padding-top: 32px;
   padding-bottom: 32px;
 }

 .hero h1,
 .page-header h1 {
   font-size: 42px;
   line-height: 1.08;
   letter-spacing: -0.02em;
 }

 .hero p,
 .page-header p,
 .lead {
   font-size: 18px;
   line-height: 1.6;
 }

 .hero-actions,
 .button-row,
 .cta-row {
   display: flex;
   flex-direction: column;
   gap: 12px;
 }

 .hero-actions .btn,
 .button-row .btn,
 .cta-row .btn,
 .hero a.btn {
   width: 100%;
   max-width: 100%;
 }

 /* GRID / CARDS */
 .cards-grid,
 .tools-grid,
 .blog-grid,
 .features-grid,
 .calculator-grid,
 .results-grid,
 .info-grid,
 .two-column-layout,
 .content-grid {
   display: grid !important;
   grid-template-columns: 1fr !important;
   gap: 16px;
 }

 .card,
 .tool-card,
 .feature-card,
 .blog-card,
 .calculator-card,
 .result-card,
 .info-card {
   width: 100%;
   max-width: 100%;
   min-width: 0;
 }

 /* CALCULATOR LAYOUT */
 .calculator-container,
 .calculator-layout,
 .calculator-wrapper {
   display: grid !important;
   grid-template-columns: 1fr !important;
   gap: 20px;
   width: 100%;
 }

 .calculator-inputs,
 .calculator-results,
 .calculator-form,
 .results-panel,
 .summary-panel,
 .chart-panel {
   width: 100%;
   max-width: 100%;
   min-width: 0;
 }

 /* INPUTS */
 .form-grid,
 .input-grid,
 .field-grid {
   display: grid !important;
   grid-template-columns: 1fr !important;
   gap: 16px;
 }

 .form-group,
 .input-group,
 .field {
   width: 100%;
 }

 input,
 select,
 textarea,
 button,
 .btn {
   width: 100%;
   max-width: 100%;
 }

 /* RESULT BOXES */
 .result-box,
 .metric-box,
 .summary-box,
 .stat-box {
   width: 100%;
   max-width: 100%;
   min-width: 0;
 }

 /* CHART */
 canvas,
 .chart-container {
   width: 100% !important;
   max-width: 100%;
   height: auto !important;
 }

 /* TEXT */
 h2 {
   font-size: 30px;
   line-height: 1.15;
 }

 h3 {
   font-size: 24px;
   line-height: 1.2;
 }

 p,
 li,
 label {
   font-size: 16px;
   line-height: 1.6;
 }
}
.menu-toggle {
 display: none;
}
@media (max-width: 768px) {
 .menu-toggle {
   display: block;
 }
}