/* Homepage minimal visual system */
body {
  background: #f6f8f7;
  color: #17201d;
}

.header {
  top: 20px;
  border: 1px solid #e2e8e5;
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.07);
}

.hero-featured {
  gap: 48px;
  margin-top: 20px;
  padding: 72px 64px;
  border-radius: 24px;
  background: #075e47;
}

.hero-branding {
  color: white;
  cursor: default;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-branding h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.08;
  text-decoration: none;
}

.hero-branding p {
  max-width: 610px;
  color: #d8eee6;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-action--primary {
  border-color: white;
  background: white;
  color: #075e47;
}

.hero-action:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.hero-action--primary:hover {
  background: #ecfdf5;
  color: #075e47;
}

.featured-blog {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: none;
}

.featured-blog:hover {
  border-color: #a7f3d0;
}

.featured-blog-header {
  display: block;
}

.featured-blog h2 {
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
}

.featured-blog-category {
  background: #ecfdf5;
}

.featured-blog-cta,
.cta-button {
  border-width: 1px;
  border-radius: 10px;
  background: #087a55;
}

.featured-blog-cta:hover,
.cta-button:hover {
  border-color: #087a55;
  background: #066747;
}

.section {
  margin-top: 88px;
  margin-bottom: 88px;
}

.section-title {
  margin-bottom: 28px;
  color: #17201d;
}

.section-title img,
.workflow-card h2 img,
.faq-content h2 img {
  display: none !important;
}

.tool-card,
.home-trust-card,
.faq-content {
  border: 1px solid #e2e8e5;
  box-shadow: none;
}

.tool-card {
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
  border-color: #8bc9b2;
  transform: translateY(-2px);
}

.home-learning .tool-header {
  display: block;
}

.home-learning .tool-icon {
  display: none;
}

.home-learning .tool-title {
  margin-bottom: 10px;
  color: #075e47;
}

/* Calculator directory */
.calculators-section {
  max-width: 1160px;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading .section-eyebrow {
  margin-bottom: 10px;
  color: #087a55;
}

.section-heading .section-title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.section-heading p {
  color: #5f6f68;
  font-size: 17px;
  line-height: 1.6;
}

.calculators-compact {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.calculators-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.calculator-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  gap: 16px;
  min-height: 96px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  background: white;
  box-shadow: none;
  color: #17201d;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.calculator-item:hover {
  border-color: #7fc3aa;
  box-shadow: 0 8px 22px rgba(7, 94, 71, 0.08);
  transform: translateY(-2px);
}

.calculator-item:focus-visible,
.calculators-link:focus-visible,
.hero-action:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 3px;
}

.calculator-item-icon {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eaf6f0;
  box-shadow: none;
}

.calculator-item-icon img {
  width: 38px !important;
  height: 38px !important;
}

.calculator-item-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.calculator-item-copy strong {
  color: #17201d;
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
}

.calculator-item-copy small {
  color: #5f6f68;
  font-size: 14px;
  line-height: 1.35;
}

.calculator-item-arrow {
  color: #087a55;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.calculator-item:hover .calculator-item-arrow {
  transform: translateX(3px);
}

.calculators-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #087a55;
  font-weight: 700;
  text-decoration: none;
}

.calculators-link:hover {
  color: #075e47;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.features-grid {
  overflow: hidden;
  gap: 0;
  border: 1px solid #e2e8e5;
  border-radius: 16px;
  background: white;
  box-shadow: none;
}

.feature-item {
  position: relative;
  padding: 28px 22px 28px 58px;
  color: #17201d;
  text-align: left;
}

.feature-item::before {
  content: "\2713";
  position: absolute;
  top: 28px;
  left: 24px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #d1fae5;
  color: #075e47;
  font-weight: 800;
}

.feature-item + .feature-item {
  border-left: 1px solid #e2e8e5;
}

.feature-icon {
  display: none;
}

.feature-title {
  min-height: auto;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.feature-text {
  color: #5f6f68;
  opacity: 1;
  line-height: 1.55;
}

.home-trust-card {
  padding: 34px;
  border-radius: 16px;
  background: white;
}

.home-trust-card h2 {
  margin-bottom: 12px;
  color: #075e47;
  font-size: 28px;
}

.home-trust-card > p {
  max-width: 900px;
  color: #5f6f68;
  line-height: 1.7;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.trust-links a,
.home-details summary {
  color: #087a55;
  font-weight: 700;
}

.home-details {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e8e5;
}

.home-details summary,
.home-faq summary {
  min-height: 44px;
  cursor: pointer;
}

.home-details-content {
  padding-top: 8px;
}

.faq-content {
  background: white;
}

.home-faq details {
  padding: 14px 0;
  border-top: 1px solid #e2e8e5;
}

.home-faq summary {
  color: #17201d;
  font-family: var(--font-headings);
  font-weight: 600;
}

.home-faq details p {
  margin: 8px 0 0;
}

.footer {
  max-width: 1200px;
  margin: 88px auto 0;
  padding: 48px 32px;
  border-radius: 18px;
  background: #075e47;
  color: #f7fffb;
}

.footer p {
  color: #f7fffb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.footer-links a {
  margin: 0;
  color: #d7f3e7;
  opacity: 1;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 968px) {
  .hero-featured {
    padding: 52px 40px;
  }

  .featured-blog {
    padding: 28px;
  }

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

  .feature-item + .feature-item {
    border-left: 0;
  }

  .feature-item:nth-child(even) {
    border-left: 1px solid #e2e8e5;
  }

  .feature-item:nth-child(n + 3) {
    border-top: 1px solid #e2e8e5;
  }
}

@media (max-width: 768px) {
  body {
    padding: 8px;
  }

  .header {
    top: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .logo-text {
    max-width: none;
    font-size: clamp(18px, 6vw, 22px);
    line-height: 1;
    white-space: nowrap;
  }

  .section {
    margin-top: 48px;
    margin-bottom: 48px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .section-title {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .hero-featured {
    gap: 28px;
    margin-top: 8px;
    padding: 30px 16px 16px;
    border-radius: 16px;
  }

  .hero-eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.45;
  }

  .hero-branding h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1.08;
  }

  .hero-branding p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-action {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
  }

  .featured-blog {
    padding: 20px;
    border-radius: 14px;
  }

  .featured-blog h2 {
    font-size: clamp(21px, 6.2vw, 24px);
    line-height: 1.22;
  }

  .featured-blog p {
    display: -webkit-box;
    margin-bottom: 16px;
    overflow: hidden;
    font-size: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .featured-blog-meta {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .featured-blog-cta,
  .cta-button {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  .section-heading {
    margin-bottom: 26px;
    padding: 0 8px;
  }

  .section-heading .section-title {
    font-size: 30px;
  }

  .section-heading p {
    font-size: 16px;
    line-height: 1.5;
  }

  .calculators-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .calculator-item {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 76px;
    padding: 12px;
    border-radius: 12px;
  }

  .calculator-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .calculator-item-icon img {
    width: 34px !important;
    height: 34px !important;
  }

  .calculator-item-copy strong {
    font-size: 15px;
  }

  .calculator-item-copy small {
    font-size: 13px;
  }

  .calculators-link {
    justify-content: center;
    padding: 4px 8px;
  }

  .tools-grid {
    gap: 12px;
  }

  .tool-card {
    padding: 20px;
    border-radius: 12px;
  }

  .tool-title {
    font-size: 19px;
  }

  .tool-description {
    font-size: 14px;
    line-height: 1.55;
  }

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

  .feature-item:nth-child(even) {
    border-left: 0;
  }

  .feature-item + .feature-item {
    border-top: 1px solid #e2e8e5;
  }

  .feature-item {
    padding: 22px 18px 22px 52px;
  }

  .feature-item::before {
    top: 22px;
    left: 18px;
  }

  .home-trust-card,
  .faq-content {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .home-trust-card h2,
  .faq-content h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .trust-links {
    display: grid;
    gap: 12px;
  }

  .trust-links a,
  .home-details summary,
  .home-faq summary {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .faq-section {
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 0 4px;
  }

  .home-faq details {
    padding: 10px 0;
  }

  .home-faq summary {
    font-size: 16px;
    line-height: 1.4;
  }

  .footer {
    margin-top: 48px;
    padding: 32px 18px;
    border-radius: 14px;
  }

  .footer-links {
    gap: 4px 20px;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 360px) {
  .header {
    padding-right: 8px;
    padding-left: 10px;
  }

  .logo-text {
    font-size: 18px;
    letter-spacing: 0.035em;
  }

  .hero-branding h1 {
    font-size: 29px;
  }

  .hero-featured {
    padding-right: 12px;
    padding-left: 12px;
  }

  .featured-blog {
    padding: 18px;
  }

  .calculator-item-copy small {
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .hero-featured {
    gap: 20px;
  }

  .featured-blog {
    padding: 18px;
  }

  .featured-blog-category {
    margin-bottom: 12px;
  }

  .featured-blog h2 {
    display: -webkit-box;
    margin-bottom: 16px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .featured-blog p,
  .featured-blog-meta {
    display: none;
  }

  .featured-blog-cta {
    width: auto;
    padding: 0;
    background: transparent;
    color: #075e47;
    text-align: left;
  }

  .featured-blog-cta:hover {
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calculator-item,
  .calculator-item-arrow,
  .tool-card {
    transition: none;
  }
}
