:root {
  --background: #f3f6fb;
  --foreground: #0b1736;
  --primary: #1b4dff;
  --primary-foreground: #ffffff;
  --border: #d8e0ed;
  --ring: #1b4dff;
  --radius: 1rem;
  --font-geist-sans: Arial, Helvetica, sans-serif;
  --font-geist-mono: "Courier New", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 8%, rgb(27 77 255 / 9%), transparent 27rem),
    linear-gradient(#f8faff, #eef3fa);
  color: var(--foreground);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-frame {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid rgb(11 23 54 / 10%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.7rem;
  background: #0b1736;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 70%);
}

.site-header nav a,
.nav-pending {
  padding: 0.55rem 0.8rem;
  border-radius: 0.6rem;
  color: #52607b;
  font-size: 0.9rem;
  font-weight: 620;
}

.site-header nav .active {
  background: #fff;
  color: #0b1736;
  box-shadow: 0 2px 10px rgb(11 23 54 / 8%);
}

.nav-pending { opacity: 0.52; }

.language-pill {
  justify-self: end;
  min-width: 2.55rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #fff;
  text-align: center;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

main {
  display: grid;
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 20px;
}

.calculator-shell { width: min(980px, 100%); margin: 0 auto; }
.calculator-copy { max-width: 690px; margin-bottom: 2.25rem; }

.eyebrow {
  margin: 0 0 0.65rem;
  color: #1b4dff;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  font-weight: 770;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.intro {
  max-width: 540px;
  margin: 1.15rem 0 0;
  color: #53617c;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 25px 80px rgb(20 38 83 / 10%);
}

.calculator-form, .date-result { padding: clamp(1.5rem, 4vw, 2.6rem); }
.calculator-form { align-self: stretch; background: #f9fbff; }
.calculator-form-title {
  margin: 0;
  color: #0b1736;
  font-size: 1.3rem;
  font-weight: 740;
  letter-spacing: -0.035em;
  text-align: center;
}
.calculator-form-intro {
  max-width: 34rem;
  margin: 0.55rem auto 1.5rem;
  color: #66738b;
  font-size: 0.94rem;
  text-align: center;
}
.calculator-form label { display: block; margin-bottom: 0.65rem; font-weight: 700; }
.calculator-form .calculator-input-label { text-align: center; }

.number-control {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #c9d4e5;
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.number-control:focus-within {
  border-color: #1b4dff;
  box-shadow: 0 0 0 4px rgb(27 77 255 / 12%);
}

.date-control {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #c9d4e5;
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.date-control:focus-within {
  border-color: #1b4dff;
  box-shadow: 0 0 0 4px rgb(27 77 255 / 12%);
}

.number-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.9rem 0 0.9rem 1rem;
  color: #0b1736;
  font-family: var(--font-geist-mono), monospace;
  font-size: 1.2rem;
  font-weight: 760;
}

.date-control input {
  width: 100%;
  min-height: 3.55rem;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  color: #0b1736;
  font-family: var(--font-geist-mono), monospace;
  font-size: 1rem;
  font-weight: 720;
}

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

.month-fields label > span {
  display: block;
  margin-bottom: 0.55rem;
  text-align: center;
}

.month-fields input {
  width: 100%;
  min-height: 3.55rem;
  border: 2px solid #c9d4e5;
  border-radius: 0.9rem;
  outline: 0;
  background: #fff;
  color: #0b1736;
  font-family: var(--font-geist-mono), monospace;
  font-size: 1.05rem;
  font-weight: 720;
  text-align: center;
}

.month-fields input:focus {
  border-color: #1b4dff;
  box-shadow: 0 0 0 4px rgb(27 77 255 / 12%);
}

.month-field-note { text-align: center; }

.month-calculator-shell .date-result {
  align-items: center;
  text-align: center;
}

.number-control span { padding-right: 1rem; color: #6c7890; font-size: 0.9rem; }
.field-note { margin: 0.65rem 0 1.15rem; color: #68758e; font-size: 0.88rem; }
.field-error { margin: -0.45rem 0 0; color: #b42318; font-size: 0.88rem; font-weight: 650; }
.quick-values { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }

.quick-values button {
  min-width: 2.9rem;
  min-height: 2.45rem;
  border: 1px solid #d7dfec;
  border-radius: 0.65rem;
  background: #fff;
  color: #3b4964;
  cursor: pointer;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.84rem;
  font-weight: 700;
}

.quick-values button:hover,
.quick-values button:focus-visible,
.quick-values button.selected {
  border-color: #1b4dff;
  outline: 0;
  background: #edf2ff;
  color: #123ec8;
}

.date-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  min-height: 270px;
  background: #0b1736;
  color: #fff;
}

.result-summary {
  display: flex;
  flex-direction: column;
}

.result-label {
  color: #9cafda;
  font-size: 0.8rem;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.date-result strong {
  max-width: 600px;
  margin-top: 0.55rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.date-result .days-total {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.days-total b {
  color: #fff;
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(3.8rem, 8vw, 6.5rem);
  font-weight: 760;
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.days-total span {
  max-width: 8rem;
  color: #c1cbe0;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.15;
}

.weekday {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #f4cf62;
  font-size: 1.05rem;
  font-weight: 700;
}

.weekday svg { width: 1.15rem; height: 1.15rem; }
.date-result p { margin: 1rem 0 0; color: #afbbd4; font-size: 0.9rem; }

.countdown-panel {
  padding-top: 1.35rem;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.countdown-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #c7d2e8;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown-heading svg {
  width: 1rem;
  height: 1rem;
  color: #f4cf62;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.countdown-unit {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0.75rem 0.3rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 6%);
}

.countdown-unit b {
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1;
}

.countdown-unit small {
  overflow: hidden;
  max-width: 100%;
  margin-top: 0.4rem;
  color: #92a2c4;
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.date-result .countdown-note {
  margin-top: 0.75rem;
  color: #7f90b4;
  font-size: 0.75rem;
}

.countdown-conversions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.countdown-conversion {
  display: grid;
  min-width: 0;
  min-height: 4.25rem;
  place-items: center;
  align-content: center;
  padding: 0.65rem 0.35rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 6%);
  text-align: center;
}

.countdown-conversion b {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-geist-mono), monospace;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.countdown-conversion small {
  margin-top: 0.35rem;
  color: #92a2c4;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.15;
  text-transform: uppercase;
}

.month-result-answer {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 13%);
  text-align: center;
}

.month-result-answer h2 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.date-result .month-result-answer p {
  margin: 0.45rem 0 0;
  color: #afbbd4;
  font-size: 0.9rem;
  line-height: 1.55;
}

.method-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 62%);
}

.method-note span { font-weight: 720; }
.method-note p { max-width: 720px; margin: 0.2rem 0 0; color: #66738b; font-size: 0.9rem; }
.method-note svg { flex: 0 0 auto; color: #1b4dff; }

.share-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 10px 35px rgb(20 38 83 / 5%);
}

.share-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #d3ddeb;
  border-radius: 50%;
  background: #fff;
  color: #34415d;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.share-button svg { width: 1.05rem; height: 1.05rem; }

.share-brand-glyph {
  font-size: 1.05rem;
  font-weight: 820;
  line-height: 1;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: #8ea9ff;
  outline: 0;
  background: #edf2ff;
  color: #123ec8;
}

.share-button.primary {
  border-color: #1b4dff;
  background: #1b4dff;
  color: #fff;
}

.share-button.primary:hover,
.share-button.primary:focus-visible { background: #123ec8; }
.share-button.whatsapp { color: #087a45; }
.share-button.facebook { color: #1756b3; }
.share-button.x { color: #0b1736; }

.quick-answer-card {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 78%);
}

.quick-answer-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.quick-answer-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.quick-answer-card th,
.quick-answer-card td {
  padding: 0.75rem 0.7rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.quick-answer-card thead th {
  padding-top: 0;
  border-top: 0;
  color: #0b1736;
  font-weight: 700;
}

.quick-answer-card tbody th {
  width: 55%;
  color: #263450;
  font-weight: 680;
}

.quick-answer-card td {
  color: #5f6d87;
}

.month-facts-card {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 62%);
}

.month-facts-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.month-facts-card p {
  max-width: 760px;
  margin: 0.45rem 0 0;
  color: #66738b;
  font-size: 1rem;
  line-height: 1.65;
}

.related-calculators {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 72%);
}

.related-calculators > h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.related-calculator-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
}

.related-calculator-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.related-calculator-link:hover,
.related-calculator-link:focus-visible {
  border-color: #8ea9ff;
  outline: 0;
  box-shadow: 0 10px 28px rgb(20 38 83 / 8%);
  transform: translateY(-1px);
}

.related-calculator-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #edf2ff;
  color: #1b4dff;
}

.related-calculator-icon svg,
.related-calculator-action svg {
  width: 1rem;
  height: 1rem;
}

.related-calculator-copy {
  display: grid;
  min-width: 0;
}

.related-calculator-copy strong {
  color: #0b1736;
  font-size: 0.98rem;
  font-weight: 720;
}

.related-calculator-copy > span {
  margin-top: 0.2rem;
  color: #66738b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.related-calculator-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #1745da;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.date-formats-card {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 78%);
}

.date-formats-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.date-formats-answer {
  margin: 0.45rem 0 1rem;
  color: #5f6d87;
  font-size: 1rem;
  line-height: 1.6;
}

.date-formats-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.date-formats-card th,
.date-formats-card td {
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.date-formats-card th {
  width: 46%;
  padding-right: 1rem;
  color: #34415d;
  font-weight: 680;
}

.date-formats-card td {
  color: #0b1736;
}

.date-formats-card .numeric-date {
  font-family: var(--font-geist-mono), monospace;
  font-variant-numeric: tabular-nums;
}

.popular-days-section {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  margin: 0.7rem 0 0;
  color: #66738b;
  font-size: 1rem;
}

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

.popular-day-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 82%);
  color: #0b1736;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 30px rgb(20 38 83 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.popular-day-card:hover,
.popular-day-card:focus-visible {
  border-color: #9bb2ff;
  outline: 0;
  box-shadow: 0 14px 35px rgb(20 38 83 / 10%);
  transform: translateY(-2px);
}

.popular-day-card.selected {
  border-color: #1b4dff;
  box-shadow: inset 0 0 0 1px #1b4dff, 0 14px 35px rgb(27 77 255 / 10%);
}

.popular-day-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  margin-bottom: 1rem;
  color: #1b4dff;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.popular-day-count b {
  font-family: var(--font-geist-mono), monospace;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
}

.popular-day-card > strong {
  font-size: 1.05rem;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.popular-day-date {
  margin-top: 0.35rem;
  color: #53617c;
  font-size: 0.88rem;
}

.popular-day-duration {
  margin-top: auto;
  padding-top: 1.2rem;
  color: #748097;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.75rem;
}

.month-links-section {
  width: min(980px, 100%);
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
}

.month-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.month-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.6rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 82%);
  color: #243250;
  font-weight: 680;
  box-shadow: 0 7px 24px rgb(20 38 83 / 4%);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.month-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: #1b4dff;
}

.month-link:hover,
.month-link:focus-visible,
.month-link.active {
  border-color: #8ea9ff;
  outline: 0;
  background: #edf2ff;
  color: #123ec8;
  transform: translateY(-1px);
}

.home-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.home-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.home-heading h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

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

.home-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 18px 55px rgb(20 38 83 / 8%);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-tool-card::after {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 13rem;
  height: 13rem;
  border: 2.5rem solid rgb(27 77 255 / 6%);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.home-tool-card:nth-child(2)::after {
  border-color: rgb(244 207 98 / 13%);
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
  z-index: 1;
  border-color: #9bb2ff;
  outline: 0;
  box-shadow: 0 24px 65px rgb(20 38 83 / 13%);
  transform: translateY(-3px);
}

.home-tool-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  margin-bottom: 2.5rem;
  border-radius: 1rem;
  background: #edf2ff;
  color: #1b4dff;
}

.home-tool-card:nth-child(2) .home-tool-icon {
  background: #fff5d8;
  color: #8a6100;
}

.home-tool-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 2.2;
}

.home-tool-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 740;
  letter-spacing: -0.045em;
}

.home-tool-card p {
  max-width: 390px;
  margin: 0.65rem 0 0;
  color: #5d6a82;
  font-size: 1rem;
}

.home-tool-action {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 2rem;
  color: #123ec8;
  font-size: 0.9rem;
  font-weight: 720;
}

.home-tool-action svg {
  width: 1rem;
  height: 1rem;
}

.content-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.content-header {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.content-header h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
}

.last-updated {
  margin: 1.2rem 0 0;
  color: #748097;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.78rem;
}

.content-card {
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 20px 60px rgb(20 38 83 / 8%);
}

.cms-content-card {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin: 1.25rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.cms-content-card p {
  margin: 0;
  color: #53617a;
  line-height: 1.75;
}

.about-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.about-sections section {
  padding: clamp(1.5rem, 4vw, 2.35rem);
}

.about-sections section:nth-child(1) {
  grid-row: span 2;
  border-right: 1px solid var(--border);
}

.about-sections section:nth-child(3) {
  border-top: 1px solid var(--border);
}

.about-sections h2,
.legal-sections h2,
.content-callout h2,
.contact-details h2 {
  margin: 0;
  color: #0b1736;
  font-size: 1.2rem;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.about-sections p,
.content-callout p,
.contact-details p {
  margin: 0.7rem 0 0;
  color: #5e6b83;
}

.about-sections p + p { margin-top: 0.9rem; }

.content-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid #cdd9ff;
  border-radius: 1.15rem;
  background: #edf2ff;
}

.primary-link,
.contact-submit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #1b4dff;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 720;
}

.primary-link:hover,
.primary-link:focus-visible,
.contact-submit:hover,
.contact-submit:focus-visible {
  outline: 3px solid rgb(27 77 255 / 18%);
  outline-offset: 2px;
  background: #123ec8;
}

.legal-page { width: min(860px, 100%); }

.legal-sections {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.legal-sections section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.legal-sections p,
.legal-sections li {
  color: #53617a;
  line-height: 1.75;
}

.legal-sections p { margin: 0.75rem 0 0; }
.legal-sections p + p { margin-top: 1rem; }

.legal-sections ul {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0 0;
  padding-left: 1.3rem;
}

.legal-sections strong { color: #243250; }

.legal-sections a {
  color: #1745da;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(27 77 255 / 30%);
  text-underline-offset: 0.18em;
}

.contact-page { width: min(1040px, 100%); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(390px, 1.4fr);
  gap: 1rem;
  align-items: start;
}

.contact-details {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: #0b1736;
  color: #fff;
}

.contact-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 2rem;
  border-radius: 0.9rem;
  background: rgb(255 255 255 / 9%);
  color: #f4cf62;
}

.contact-icon svg { width: 1.3rem; height: 1.3rem; }
.contact-details h2 { color: #fff; }

.contact-details > a {
  display: inline-block;
  margin-top: 0.55rem;
  color: #f4cf62;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-details p { color: #afbbd4; font-size: 0.88rem; }
.contact-form-card { padding: clamp(1.4rem, 4vw, 2.25rem); }

.contact-form,
.contact-form label {
  display: grid;
}

.contact-form { gap: 1.25rem; }
.contact-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }

.contact-form label > span,
.math-check legend {
  margin-bottom: 0.55rem;
  color: #243250;
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid #c9d4e5;
  border-radius: 0.75rem;
  outline: 0;
  background: #fff;
  color: #0b1736;
}

.contact-form input { min-height: 3rem; padding: 0.7rem 0.85rem; }
.contact-form textarea { min-height: 9rem; padding: 0.8rem 0.85rem; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1b4dff;
  box-shadow: 0 0 0 4px rgb(27 77 255 / 10%);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a96aa; }

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.math-check {
  margin: 0;
  padding: 0;
  border: 0;
}

.math-check legend { padding: 0; }

.math-check-inner {
  display: grid;
  grid-template-columns: auto 1fr 7rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #cdd9ff;
  border-radius: 0.85rem;
  background: #f1f5ff;
}

.math-check-inner > svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #1b4dff;
}

.math-check-inner > div { display: grid; }
.math-check-inner > div span { color: #66738b; font-size: 0.78rem; }
.math-check-inner strong { margin-top: 0.15rem; font-family: var(--font-geist-mono), monospace; }
.math-check-inner label span { margin: 0; }

.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-submit { gap: 0.5rem; }
.contact-submit svg { width: 1rem; height: 1rem; }
.contact-submit:disabled { cursor: wait; opacity: 0.66; }

.form-status {
  margin: 0;
  color: #53617a;
  font-size: 0.84rem;
}

.form-status.success { color: #18794e; }
.form-status.error { color: #b42318; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgb(11 23 54 / 10%);
  color: #6b7790;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.footer-links a { color: #45536d; font-weight: 650; }
.footer-links a:hover, .footer-links a:focus-visible { color: #1b4dff; text-decoration: underline; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; width: min(100% - 28px, 1180px); }
  .site-header nav { display: none; }
  main { align-items: start; padding: 3.5rem 14px; }
  .calculator-copy { margin-bottom: 1.6rem; }
  .wide-copy h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .home-heading h1 { font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .home-tools-grid { grid-template-columns: 1fr; }
  .home-tool-card { min-height: 270px; }
  .content-header h1 { font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .about-sections { grid-template-columns: 1fr; }
  .about-sections section:nth-child(1) { grid-row: auto; border-right: 0; }
  .about-sections section + section { border-top: 1px solid var(--border); }
  .content-callout { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-field-row { grid-template-columns: 1fr; }
  .calculator-grid { grid-template-columns: 1fr; }
  .date-result { min-height: 245px; }
  .method-note svg { display: none; }
  .popular-days-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popular-day-card { min-height: 180px; padding: 1rem; }
  .month-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { align-items: flex-start; flex-direction: column; width: min(100% - 28px, 1180px); }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .popular-days-grid { grid-template-columns: 1fr; }
  .month-fields { grid-template-columns: 1fr; }
  .countdown-conversions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .math-check-inner { grid-template-columns: auto 1fr; }
  .math-check-inner label { grid-column: 1 / -1; }
  .contact-submit-row { align-items: flex-start; flex-direction: column; }
  .related-calculator-link { grid-template-columns: auto 1fr; }
  .related-calculator-action { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
