/* 13thmonthpaycalculator.com — standalone design (Dec 2026 money theme) */
:root {
  --paper: #F6F8FB;
  --paper-2: #EAF0F7;
  --ink: #122038;
  --ink-2: #3B4A63;
  --muted: #6C7A92;
  --line: #D6DFEA;
  --green: #1D4ED8;
  --green-2: #173FA5;
  --gold: #C9962A;
  --gold-soft: #F5E7C8;
  --red: #B4432F;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18,32,56,.05), 0 12px 32px -12px rgba(18,32,56,.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .9rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--gold); display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700;
}
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .93rem; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--green); }
@media (max-width: 680px) {
  .nav-links { flex-basis: 100%; padding-top: .5rem; gap: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Hero */
.hero { padding: 3rem 0 1.5rem; text-align: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.12; max-width: 22ch; margin: 0 auto .75rem; }
.hero .lead { color: var(--ink-2); font-size: 1.06rem; max-width: 58ch; margin: 0 auto; }
.badge {
  display: inline-block; background: var(--gold-soft); color: #7A5A14;
  border: 1px solid #E4CE9A; border-radius: 999px;
  font-size: .82rem; font-weight: 600; padding: .3rem .9rem; margin-bottom: 1rem;
}

/* Calculator card */
.calc-wrap { padding: 1.5rem 0 2.5rem; }
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; overflow: hidden;
}
.calc-head {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.calc-head h2 { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.calc-head .mode-tabs { display: flex; gap: .4rem; }
.mode-tab {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.mode-tab.active { background: var(--gold); color: var(--green-2); border-color: var(--gold); }
.calc-body { padding: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.field input[type="number"], .field select {
  width: 100%; padding: .75rem .9rem; font-size: 1.05rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.months-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 560px) { .months-grid { grid-template-columns: repeat(2, 1fr); } }
.months-grid .field { margin-bottom: 0; }
.months-grid label { font-size: .78rem; }
.months-grid input { padding: .5rem .6rem; font-size: .95rem; }

.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.8rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff;
  width: 100%;
}
.btn:hover { filter: brightness(1.1); }

/* Result — big, glowing */
.result { display: none; margin-top: 1.4rem; text-align: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem 1.1rem; }
.result.show { display: block; }
.result .result-label { font-size: .88rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; text-transform: uppercase; }
.result .result-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--green);
  text-shadow: 0 0 18px rgba(201,150,42,.45);
  margin: .2rem 0 .4rem;
}
.result .result-sub { font-size: .9rem; color: var(--ink-2); }
.result .result-tax { margin-top: .8rem; font-size: .88rem; padding: .6rem .9rem; border-radius: var(--radius-sm); display: inline-block; }
.result .result-tax.exempt { background: #E4F0E4; color: var(--green-2); }
.result .result-tax.taxable { background: #F7E5DE; color: var(--red); }

/* Sections */
.section { padding: 2.25rem 0; }
.section h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .9rem; }
.section h3 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; }
.section p, .section li { color: var(--ink-2); }
.section p { margin-bottom: .9rem; max-width: 72ch; }
.section ul, .section ol { margin: 0 0 1rem 1.4rem; }
.section li { margin-bottom: .4rem; }
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.formula {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1rem 0;
  font-size: 1.05rem; font-weight: 600;
}

.table-wrap { overflow-x: auto; margin: 1.1rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.data-table th { background: var(--paper-2); text-align: left; padding: .65rem .9rem; font-weight: 600; border-bottom: 2px solid var(--line); }
.data-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; padding: .85rem 1.1rem; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }

/* Footer */
.footer { background: var(--green-2); color: rgba(255,255,255,.75); padding: 2rem 0; margin-top: 2rem; font-size: .9rem; }
.footer a { color: rgba(255,255,255,.85); }
.footer .footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.disclaimer { font-size: .82rem; color: var(--muted); max-width: 72ch; margin: 1rem auto 0; text-align: center; padding: 0 1.25rem; }
