@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --navy: #0e2f28;
  --ocean: #0c6e5a;
  --sky: #2563eb;
  --sand: #f7fbf9;
  --mint: #059669;
  --ink: #10261f;
  --ink-soft: #365149;
  --soft: #ecf7f2;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(5, 54, 45, 0.1);
  --radius: 14px;
}


* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--navy);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 2.6vw, 2.9rem);
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
}

p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.text-muted {
  color: var(--ink-soft) !important;
}

.navbar {
  background: rgba(247, 251, 249, 0.96);
  border-bottom: 1px solid rgba(12, 110, 90, 0.16);
}

.glass-nav {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-logo {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  max-width: 34px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 34px;
}

.navbar-brand img.site-logo {
  width: 34px !important;
  height: 34px !important;
}

.nav-link {
  font-weight: 600;
  color: var(--ocean);
  font-size: 0.96rem;
}

.nav-link:hover {
  color: var(--mint);
}

.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.2), transparent 35%),
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.14), transparent 30%),
    linear-gradient(160deg, #0e2f28 0%, #0d5a4a 60%, #0e2f28 100%);
  color: #fff;
}

.hero .lead,
.hero h1,
.hero p {
  color: #f8fafc;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.hero .d-flex.flex-wrap.gap-3 {
  margin-top: 1.35rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.eyebrow.dark {
  color: var(--ink-soft);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--soft);
}

.section-title {
  margin-bottom: 2.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 110, 90, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.tool-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.tool-card:hover h3,
.tool-card:hover p {
  color: var(--navy);
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(5, 70, 57, 0.18);
}

.tool-card.card-bg {
  --card-bg: url("https://source.unsplash.com/800x600/?abstract");
}

.tool-card.card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at top right, rgba(5, 150, 105, 0.14), transparent 45%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.75)),
    var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.tool-card::after {
  content: "Use Free Tool";
  position: static;
  align-self: flex-end;
  margin-top: auto;
  margin-top: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--mint);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.32);
  z-index: 1;
}

.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mini-links a {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.calculator-hero {
  padding: 3rem 0 1rem;
  background: linear-gradient(120deg, #f8fbf9 10%, #edf7f2 100%);
}

.calculator-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 110, 90, 0.12);
}

.calculator-card h3 {
  font-size: 1.15rem;
}

.form-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.94rem;
}

.form-control,
.form-select {
  font-size: 0.96rem;
}

.result-box {
  background: #e8f5ef;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.footer {
  background: #0b2b25;
  color: #dcede6;
  padding: 2rem 0;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #f8fafc;
}

.footer-brand .site-logo {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  max-width: 34px;
  flex: 0 0 34px;
}

.footer-text {
  color: #b9d8cd;
  margin-bottom: 0;
}

.footer h6 {
  color: #f8fafc;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #c8e0d7;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.btn-primary {
  background-color: var(--mint);
  border-color: var(--mint);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background-color: #047857;
  border-color: #047857;
  color: #ffffff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

.badge-soft {
  background: rgba(5, 150, 105, 0.14);
  color: var(--mint);
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero {
    padding: 4.5rem 0 4rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.rich-editor {
  min-height: 420px;
  border: 1px solid rgba(12, 110, 90, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
  background: #fff;
  outline: none;
}

.rich-editor h1,
.rich-editor h2,
.rich-editor h3 {
  margin-top: 1rem;
}

.pdf-canvas-wrapper {
  position: relative;
  width: 100%;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(12, 110, 90, 0.2);
  background: #f8fafc;
}

#pdfCanvas,
#overlayCanvas {
  display: block;
  width: 100%;
}

#overlayCanvas {
  position: absolute;
  top: 0;
  left: 0;
}

.image-preview {
  min-height: 260px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(12, 110, 90, 0.26);
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.result-label {
  font-size: 0.85rem;
  color: #4b6b62;
}

.result-value {
  font-weight: 700;
  color: var(--navy);
}

.ad-slot {
  border: 1px dashed rgba(12, 110, 90, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  background: #f7fbf9;
  color: #4b6b62;
  text-align: center;
  font-weight: 600;
  margin: 2rem 0;
}

.seo-links-section .calculator-card {
  border: 1px solid rgba(12, 110, 90, 0.12);
}

.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.seo-link-pill {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(12, 110, 90, 0.14);
}

.seo-link-pill:hover {
  background: linear-gradient(180deg, #f0faf5, #e4f4ec);
  border-color: rgba(5, 150, 105, 0.35);
}

.related-links-grid {
  columns: 2;
  column-gap: 1rem;
}

.related-links-grid li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

.related-links-grid a {
  color: #2563eb;
  font-weight: 600;
}

.related-links-grid a:hover {
  color: var(--navy);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .related-links-grid {
    columns: 1;
  }
}
