:root {
  --bg: #f3f8ff;
  --surface: #fff;
  --primary: #1459d9;
  --primary-dark: #0f47ae;
  --primary-soft: #e8f0ff;
  --text: #172235;
  --muted: #4d6283;
  --border: #d6e3fb;
  --danger: #b42318;
  --ok: #0c7a4c;
  --shadow: 0 14px 42px rgba(20, 89, 217, 0.14);
  --radius: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 12%, #edf4ff 0, #edf4ff 20%, transparent 55%),
    radial-gradient(circle at 88% 8%, #e5efff 0, #e5efff 22%, transparent 56%),
    linear-gradient(180deg, #f8fbff 0, #f2f7ff 100%);
  min-height: 100vh;
}

a {
  color: var(--primary);
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0.45rem;
  z-index: 2000;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--primary) !important;
}

.navbar .nav-link {
  color: var(--text);
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.active {
  color: var(--primary);
}

.hero-section {
  padding: 0 2.4rem;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #cfe0ff;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.8rem);
  line-height: 1.2;
  margin-top: 1rem;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 820px;
  font-size: 1.06rem;
  color: var(--muted);
  margin-top: 0.95rem;
}

.calculator-card {
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: clamp(1rem, 1.4vw + 0.75rem, 1.8rem);
}

.form-label {
  font-weight: 700;
  color: var(--text);
}

.form-control,
.form-select {
  min-height: 2.9rem;
  border: 1px solid #bcd3fa;
  border-radius: 0.72rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #7ca7f5;
  box-shadow: 0 0 0 0.2rem rgba(20, 89, 217, 0.18);
}

.btn-primary {
  border-radius: 0.72rem;
  font-weight: 700;
  background: var(--primary);
  border-color: var(--primary);
  padding: 0.72rem 0.88rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.note-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.error-text {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--danger);
}

.results-panel {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

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

.result-item {
  border: 1px solid #dbe8ff;
  background: #f8fbff;
  border-radius: 0.82rem;
  padding: 0.75rem 0.8rem;
}

.result-item h3 {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #47618a;
  font-weight: 700;
}

.result-item p {
  margin: 0.32rem 0 0;
  font-size: 1.22rem;
  line-height: 1.15;
  font-weight: 800;
}

.result-highlight {
  margin-top: 0.85rem;
  border: 1px solid #d4e4ff;
  background: #f0f6ff;
  border-radius: 0.75rem;
  padding: 0.72rem 0.88rem;
  color: #25476d;
  font-weight: 600;
}

/* --- UI alignment upgrades to match homepage system --- */
.page-calculator .hero-section,
.page-calculator-hub .hero-section {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) 1.5rem 2.2rem;
}

.page-calculator .hero-title,
.page-calculator-hub .hero-title {
  margin-left: auto;
  margin-right: auto;
}

.page-calculator .hero-subtitle,
.page-calculator-hub .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.page-calculator .trust-badges,
.page-calculator-hub .trust-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1rem auto 0;
  justify-content: center;
}

.page-calculator .trust-badges li,
.page-calculator-hub .trust-badges li {
  list-style: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cfe0ff;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 89, 217, 0.08);
  font-weight: 700;
  color: var(--muted);
}

.page-calculator .calculator-card,
.page-calculator-hub .calculator-card {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-calculator .js-calc-form .row,
.page-calculator-hub .js-calc-form .row {
  row-gap: 0.75rem;
}

.page-calculator .btn-calc,
.page-calculator-hub .btn-calc {
  min-width: 220px;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto;
}

.page-calculator .results-panel,
.page-calculator-hub .results-panel {
  text-align: center;
}

.result-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 89, 217, 0.12);
}

.section-block {
  padding: clamp(1.6rem, 2vw + 1.1rem, 2.6rem) 0;
  padding-top: 1rem !important;
}

.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(23, 34, 53, 0.06);
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.related-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 700;
}

.related-card p {
  margin: 0;
  color: var(--muted);
}

.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 89, 217, 0.14);
  color: var(--text);
}

.ad-slot .ad-box {
  border-radius: 0.9rem;
}

.extra-result-list {
  margin-top: 0.85rem;
  padding-left: 1rem;
}

.extra-result-list li {
  margin-bottom: 0.35rem;
  color: #2f4567;
}

.inline-breadcrumb .breadcrumb {
  margin: 0;
}

.inline-breadcrumb .breadcrumb-item,
.inline-breadcrumb .breadcrumb-item a {
  font-size: 0.9rem;
  color: #55719a;
}

.section-block {
  padding: 2.65rem 0;
}

.section-title {
  font-size: clamp(1.3rem, 0.95vw + 1rem, 1.9rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.ad-slot {
  display: none;
  margin: 1.35rem 0;
  padding: 0.75rem;
  border: 1px dashed #b7ccf3;
  border-radius: 0.78rem;
  background: #f6faff;
}

.ad-label {
  font-size: 0.74rem;
  color: #5f7698;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border-radius: 0.6rem;
  background: #fff;
  color: #5d759a;
  font-weight: 600;
  border: 1px solid #d8e6ff;
  text-align: center;
}

.content-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(20, 89, 217, 0.08);
  background: #fff;
  padding: clamp(1.2rem, 1.3vw + 0.95rem, 1.85rem);
}

.content-card h2,
.content-card h3 {
  font-weight: 800;
}

.content-card p,
.content-card li {
  color: #304663;
}

.content-card ul,
.content-card ol {
  padding-left: 1rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #d7e5ff;
  border-radius: 0.8rem;
}

.table-wrap table {
  margin: 0;
  min-width: 680px;
}

.table-wrap thead th {
  background: #edf4ff;
  color: #1f385f;
}

.table > :not(caption) > * > * {
  padding: 0.65rem 0.7rem;
}

.howto-steps li {
  margin-bottom: 0.65rem;
}

.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.related-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.85rem;
  box-shadow: 0 8px 24px rgba(20, 89, 217, 0.07);
  height: 100%;
}

.related-card h3 {
  margin: 0 0 0.32rem;
  font-size: 1.02rem;
  color: var(--text);
}

.related-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.related-card:hover,
.related-card:focus-visible {
  box-shadow: 0 11px 30px rgba(20, 89, 217, 0.14);
  transform: translateY(-1px);
}

.cta-panel {
  margin-top: 1.2rem;
  border: 1px solid #bfd7ff;
  background: linear-gradient(140deg, #eaf3ff 0, #f7fbff 100%);
  border-radius: 0.95rem;
  padding: 1rem;
}

.cta-panel h3 {
  margin-top: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.88rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.7rem;
}

.faq-item .accordion-button {
  font-weight: 700;
  color: #1f3557;
}

.faq-item .accordion-button:not(.collapsed) {
  background: #edf4ff;
  color: #143260;
}

.faq-item .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(20, 89, 217, 0.2);
}

.faq-item .accordion-body {
  color: #2f4569;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid #d9e4f2;
  background: #f8f9fa;
}

.footer-top {
  padding: 4.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(170px, 1fr));
  gap: 1.25rem 2rem;
  align-items: flex-start;
}

.footer-col {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-logo {
  width: 200px;
  height: 60px;
  object-fit: contain;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
}

.footer-title {
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.72rem;
  color: #25456f;
}

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

.footer-links li + li {
  margin-top: 0.46rem;
}

.footer-links a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: #2f4e74;
  line-height: 1.45;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

#footer-brand-title {
  display: none !important;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary-dark);
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
}

.footer-trust {
  font-size: 0.88rem;
  font-weight: 700;
  color: #4f6688;
}

.footer-soon {
  font-weight: 600;
  color: #5d7596;
}

.footer-bottom {
  border-top: 1px solid #d6e1ef;
  padding: 0.95rem 0 1.2rem;
}

.footer-bottom-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}

.footer-bottom small {
  color: #5b7293;
  font-size: 0.89rem;
}

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

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 3rem;
  }

  .navbar-collapse {
    border-top: 1px solid var(--border);
    margin-top: 0.55rem;
    padding-top: 0.7rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .result-item p {
    font-size: 1.1rem;
  }

  .ad-box {
    min-height: 76px;
  }
}

.site-logo {
  width: 200px;
  max-width: min(200px, 58vw);
  height: auto;
  object-fit: contain;
}

.navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0.82rem;
  box-shadow: 0 16px 36px rgba(20, 89, 217, 0.16);
  padding: 0.45rem;
}

.navbar .dropdown-item {
  font-weight: 600;
  color: var(--text);
  border-radius: 0.58rem;
  padding: 0.52rem 0.7rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.navbar .dropdown-item.active {
  background: var(--primary);
  color: #fff;
}

.category-block {
  margin-bottom: 1rem;
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-block p {
  margin-bottom: 0.9rem;
}

.btn-outline-primary {
  border-radius: 0.72rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    padding: 3.6rem 0 1.6rem;
  }

  .footer-bottom-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0.2rem 0 0.3rem;
  }

  .navbar .dropdown-item {
    padding: 0.42rem 0;
  }
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.legal-content .legal-section {
  margin-bottom: 1.35rem;
}

.legal-content .legal-section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin-top: 0.25rem;
}

.contact-form .form-control,
.contact-form textarea {
  background: #fff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.94rem;
  font-weight: 600;
}

.form-status-success {
  color: var(--ok);
}

.form-status-error {
  color: var(--danger);
}

/* Homepage premium refresh */
:is(.homepage, .site-premium) {
  --home-blue-700: #0f47ae;
  --home-blue-600: #1459d9;
  --home-blue-500: #2e73f5;
  --home-blue-50: #f4f8ff;
  --home-gray-700: #2d4365;
  --home-gray-600: #4d6283;
  --home-border: #d5e2fb;
  --home-radius-lg: 20px;
  --home-radius-md: 16px;
  --home-shadow-sm: 0 12px 26px rgba(20, 89, 217, 0.1);
  --home-shadow-md: 0 20px 44px rgba(20, 89, 217, 0.14);
}

:is(.homepage, .site-premium) main {
  overflow-x: clip;
}

:is(.homepage, .site-premium) .hero-section {
  padding: clamp(2.5rem, 4vw, 4.5rem) 0 1.6rem;
}

:is(.homepage, .site-premium) .hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe7ff;
  border-radius: 24px;
  background: linear-gradient(162deg, #fbfdff 0%, #f2f7ff 54%, #ffffff 100%);
  box-shadow: 0 20px 46px rgba(20, 89, 217, 0.12);
  padding: clamp(1.25rem, 3.2vw, 2.6rem);
  text-align: center;
}

:is(.homepage, .site-premium) .hero-shell::before,
:is(.homepage, .site-premium) .hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

:is(.homepage, .site-premium) .hero-shell::before {
  width: 240px;
  height: 240px;
  top: -132px;
  left: -108px;
  background: radial-gradient(
    circle,
    rgba(46, 115, 245, 0.2) 0%,
    rgba(46, 115, 245, 0) 70%
  );
}

:is(.homepage, .site-premium) .hero-shell::after {
  width: 260px;
  height: 260px;
  right: -126px;
  bottom: -164px;
  background: radial-gradient(
    circle,
    rgba(84, 156, 255, 0.2) 0%,
    rgba(84, 156, 255, 0) 72%
  );
}

:is(.homepage, .site-premium) .hero-eyebrow {
  position: relative;
  z-index: 1;
}

:is(.homepage, .site-premium) .hero-title {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 1rem auto 0;
  font-size: clamp(2rem, 2.7vw + 1rem, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

:is(.homepage, .site-premium) .accent-text {
  color: var(--home-blue-600);
}

:is(.homepage, .site-premium) .hero-subtitle {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0.9rem auto 0;
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.18rem);
  color: var(--home-gray-600);
}

:is(.homepage, .site-premium) .trust-badges {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

:is(.homepage, .site-premium) .trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #cbdcff;
  background: #fff;
  color: #335175;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(20, 89, 217, 0.08);
}

:is(.homepage, .site-premium) .trust-badges li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-blue-500);
}

:is(.homepage, .site-premium) .calculator-card {
  position: relative;
  z-index: 1;
  margin: 1.3rem auto 0;
  max-width: 980px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow-md);
  padding: clamp(1.1rem, 1.4vw + 0.82rem, 1.95rem);
}

:is(.homepage, .site-premium) .form-label {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

:is(.homepage, .site-premium) .date-field {
  position: relative;
}

:is(.homepage, .site-premium) .date-field-icon {
  position: absolute;
  left: 0.86rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5a77a4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

:is(.homepage, .site-premium) .date-field .form-control {
  min-height: 3rem;
  padding-left: 2.65rem;
  border-radius: 14px;
  border-color: #bfd4fa;
  background: #fff;
}

:is(.homepage, .site-premium) .btn-calc {
  min-height: 3rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1459d9 0%, #2d73f5 100%);
  box-shadow: 0 10px 20px rgba(20, 89, 217, 0.24);
}

:is(.homepage, .site-premium) .btn-calc:hover,
:is(.homepage, .site-premium) .btn-calc:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(20, 89, 217, 0.32);
  background: linear-gradient(135deg, #0f47ae 0%, #1d63eb 100%);
}

:is(.homepage, .site-premium) .error-text {
  margin-top: 0.7rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid #f5c7cd;
  border-radius: 12px;
  background: #fff5f6;
}

:is(.homepage, .site-premium) .results-panel {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #dbe7ff;
}

:is(.homepage, .site-premium) .result-grid {
  gap: 0.82rem;
}

:is(.homepage, .site-premium) .result-item {
  border-radius: var(--home-radius-md);
  border: 1px solid #d6e4ff;
  background: linear-gradient(160deg, #fbfdff 0%, #f5f9ff 100%);
  padding: 0.92rem;
  min-height: 5.9rem;
}

:is(.homepage, .site-premium) .result-item h3 {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: #56709a;
}

:is(.homepage, .site-premium) .result-item p {
  margin-top: 0.4rem;
  font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem);
  color: #17315a;
}

:is(.homepage, .site-premium) .result-highlight {
  margin-top: 1rem;
  padding: 0.82rem 0.92rem;
  border: 1px solid #c3d7ff;
  border-radius: 14px;
  background: linear-gradient(140deg, #edf4ff 0%, #f7fbff 100%);
  color: #1f406c;
  font-weight: 700;
}

:is(.homepage, .site-premium) .result-highlight span {
  color: #0f47ae;
}

:is(.homepage, .site-premium) .extra-result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin-top: 0.92rem;
  padding-left: 0;
}

:is(.homepage, .site-premium) .extra-result-list li {
  margin-bottom: 0;
  padding: 0.38rem 0.66rem;
  border: 1px solid #d8e5ff;
  border-radius: 999px;
  background: #f8fbff;
  font-size: 0.82rem;
  color: #2f4d73;
}

:is(.homepage, .site-premium) .section-soft {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  border-top: 1px solid #e4edff;
  border-bottom: 1px solid #e4edff;
}

:is(.homepage, .site-premium) .info-card {
  height: 100%;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  background: #fff;
  box-shadow: var(--home-shadow-sm);
  padding: 1rem;
}

:is(.homepage, .site-premium) .info-card h3 {
  margin: 0.75rem 0 0.38rem;
  font-size: 1.03rem;
  font-weight: 800;
}

:is(.homepage, .site-premium) .info-card p {
  margin: 0;
  color: var(--home-gray-700);
  font-size: 0.94rem;
}

:is(.homepage, .site-premium) .info-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--home-blue-700);
  background: #eaf2ff;
  border: 1px solid #d2e1ff;
}

:is(.homepage, .site-premium) .step-card {
  position: relative;
  padding-top: 1.15rem;
}

:is(.homepage, .site-premium) .step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #1459d9 0%, #2d73f5 100%);
}

:is(.homepage, .site-premium) .feature-card {
  border-top: 3px solid #c9ddff;
}

:is(.homepage, .site-premium) .top-calculators-grid .related-card {
  border-radius: var(--home-radius-md);
  border-color: var(--home-border);
  padding: 1rem;
}

:is(.homepage, .site-premium) .card-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  border: 1px solid #c9dbff;
  background: #eef4ff;
  color: #335885;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

:is(.homepage, .site-premium) .related-card,
:is(.homepage, .site-premium) .result-item,
:is(.homepage, .site-premium) .info-card,
:is(.homepage, .site-premium) .btn-calc {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

:is(.homepage, .site-premium) .result-item:hover,
:is(.homepage, .site-premium) .info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(20, 89, 217, 0.16);
}

:is(.homepage, .site-premium) .fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: homepageFadeUp 0.68s ease forwards;
}

:is(.homepage, .site-premium) .delay-1 {
  animation-delay: 0.08s;
}

:is(.homepage, .site-premium) .delay-2 {
  animation-delay: 0.14s;
}

:is(.homepage, .site-premium) .delay-3 {
  animation-delay: 0.2s;
}

:is(.homepage, .site-premium) .delay-4 {
  animation-delay: 0.28s;
}

@keyframes homepageFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  :is(.homepage, .site-premium) .hero-shell {
    border-radius: 20px;
  }

  :is(.homepage, .site-premium) .hero-title {
    font-size: clamp(1.9rem, 5.6vw, 2.75rem);
  }
}

@media (max-width: 575px) {
  :is(.homepage, .site-premium) .hero-section {
    padding-top: 2rem;
  }

  :is(.homepage, .site-premium) .hero-shell {
    border-radius: 18px;
    padding: 1rem;
  }

  :is(.homepage, .site-premium) .trust-badges {
    justify-content: flex-start;
  }

  :is(.homepage, .site-premium) .trust-badges li {
    min-height: 2rem;
    font-size: 0.8rem;
  }

  :is(.homepage, .site-premium) .date-field .form-control,
  :is(.homepage, .site-premium) .btn-calc {
    min-height: 3.1rem;
  }

  :is(.homepage, .site-premium) .section-title {
    margin-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.homepage, .site-premium) .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  :is(.homepage, .site-premium) .related-card,
  :is(.homepage, .site-premium) .result-item,
  :is(.homepage, .site-premium) .info-card,
  :is(.homepage, .site-premium) .btn-calc {
    transition: none;
  }
}

/* Sitewide premium rollout */
.site-premium .btn-primary {
  border: none;
  min-height: 2.95rem;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #1459d9 0%, #2d73f5 100%);
  box-shadow: 0 10px 20px rgba(20, 89, 217, 0.22);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.site-premium .btn-primary:hover,
.site-premium .btn-primary:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0f47ae 0%, #1d63eb 100%);
  box-shadow: 0 14px 26px rgba(20, 89, 217, 0.28);
}

.site-premium.page-calculator .hero-shell > .inline-breadcrumb,
.site-premium.page-calculator .hero-shell > .hero-eyebrow,
.site-premium.page-calculator .hero-shell > .hero-title,
.site-premium.page-calculator .hero-shell > .hero-subtitle,
.site-premium.page-calculator .hero-shell > .trust-badges,
.site-premium.page-calculator .hero-shell > .calculator-card,
.site-premium.page-calculator-hub .hero-shell > .inline-breadcrumb,
.site-premium.page-calculator-hub .hero-shell > .hero-eyebrow,
.site-premium.page-calculator-hub .hero-shell > .hero-title,
.site-premium.page-calculator-hub .hero-shell > .hero-subtitle,
.site-premium.page-calculator-hub .hero-shell > .trust-badges {
  opacity: 0;
  transform: translateY(14px);
  animation: homepageFadeUp 0.68s ease forwards;
}

.site-premium.page-calculator .hero-shell > .hero-eyebrow,
.site-premium.page-calculator-hub .hero-shell > .hero-eyebrow {
  animation-delay: 0.08s;
}

.site-premium.page-calculator .hero-shell > .hero-title,
.site-premium.page-calculator-hub .hero-shell > .hero-title {
  animation-delay: 0.14s;
}

.site-premium.page-calculator .hero-shell > .hero-subtitle,
.site-premium.page-calculator-hub .hero-shell > .hero-subtitle {
  animation-delay: 0.2s;
}

.site-premium.page-calculator .hero-shell > .trust-badges,
.site-premium.page-calculator-hub .hero-shell > .trust-badges {
  animation-delay: 0.24s;
}

.site-premium.page-calculator .hero-shell > .calculator-card {
  animation-delay: 0.3s;
}

.site-premium.page-calculator input[type="date"].form-control {
  min-height: 3rem;
  border-radius: 14px;
  border-color: #bfd4fa;
  padding-left: 2.65rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3.5' y='4.5' width='17' height='16' rx='3' stroke='%235a77a4' stroke-width='1.5'/%3E%3Cpath d='M7 2.75V6M17 2.75V6M3.5 9.5H20.5' stroke='%235a77a4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.82rem center;
  background-size: 1rem 1rem;
}

.site-premium.page-calculator .js-calculator[data-mode="dob"] .result-item p {
  font-size: clamp(1.15rem, 0.55vw + 0.95rem, 1.4rem);
  line-height: 1.2;
}
.result-item > p {
  font-size: 20px !important;
}

.site-premium.page-calculator .result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(20, 89, 217, 0.16);
}

.site-premium.page-calculator .section-block.pt-0 .content-card {
  border-radius: 20px;
  border-color: #d6e4ff;
}

.site-premium.page-calculator .content-card > h2:first-child + p {
  padding: 0.86rem 0.95rem;
  border: 1px solid #d4e2ff;
  border-radius: 14px;
  background: #f5f9ff;
}

.site-premium.page-calculator
  main
  > .section-block.pt-0:not(#faq):not(.hero-section) {
  background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
  border-top: 1px solid #e7efff;
}

.site-premium.page-calculator-hub .calculator-hub-section .content-card {
  border-radius: 20px;
  border-color: #d6e4ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.site-premium.page-calculator-hub .calculator-hub-section .related-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.site-premium.page-calculator-hub .calculator-hub-section .related-card {
  border-radius: 16px;
  border-color: #d6e4ff;
  min-height: 100%;
}

.site-premium.page-content .legal-hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  background: linear-gradient(160deg, #fbfdff 0%, #f2f7ff 56%, #ffffff 100%);
  box-shadow: 0 16px 36px rgba(20, 89, 217, 0.11);
  padding: clamp(1rem, 2.2vw, 1.7rem);
  margin-bottom: 1.1rem;
}

.site-premium.page-content .legal-hero-shell > .hero-title {
  margin-top: 0.7rem;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  max-width: 22ch;
}

.site-premium.page-content .legal-hero-shell > .hero-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 72ch;
}

.site-premium.page-content .legal-hero-shell .trust-badges {
  justify-content: flex-start;
}

.site-premium.page-content .section-block.pt-0.pb-0 {
  padding-top: 0;
}

.site-premium.page-content .legal-content {
  /* max-width: 920px; */
  margin: 0 auto;
  border-radius: 20px;
  border-color: #d6e4ff;
}

.site-premium.page-content .legal-section + .legal-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e2ecff;
}

/* .site-premium.page-content .legal-content p {
  max-width: 72ch;
} */

.site-premium.page-content .contact-form .form-control,
.site-premium.page-content .contact-form textarea {
  min-height: 3rem;
  border-radius: 14px;
  border-color: #bfd4fa;
}

.site-premium.page-content .contact-form textarea {
  min-height: 10rem;
}

.site-premium.page-content .related-tools .related-card {
  border-radius: 16px;
}

@media (max-width: 991px) {
  .site-premium.page-calculator-hub .calculator-hub-section .related-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .site-premium.page-calculator-hub .calculator-hub-section .related-tools {
    grid-template-columns: 1fr;
  }

  .site-premium.page-content .legal-hero-shell {
    border-radius: 18px;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-premium.page-calculator .hero-shell > .inline-breadcrumb,
  .site-premium.page-calculator .hero-shell > .hero-eyebrow,
  .site-premium.page-calculator .hero-shell > .hero-title,
  .site-premium.page-calculator .hero-shell > .hero-subtitle,
  .site-premium.page-calculator .hero-shell > .trust-badges,
  .site-premium.page-calculator .hero-shell > .calculator-card,
  .site-premium.page-calculator-hub .hero-shell > .inline-breadcrumb,
  .site-premium.page-calculator-hub .hero-shell > .hero-eyebrow,
  .site-premium.page-calculator-hub .hero-shell > .hero-title,
  .site-premium.page-calculator-hub .hero-shell > .hero-subtitle,
  .site-premium.page-calculator-hub .hero-shell > .trust-badges {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
