:root {
  --ink: #17201d;
  --muted: #65736e;
  --paper: #ffffff;
  --canvas: #f6f3ec;
  --canvas-2: #ebe7dc;
  --line: #d9d2c3;
  --navy: #183447;
  --teal: #08756f;
  --teal-dark: #07514d;
  --maroon: #8b2f39;
  --amber: #c68a2c;
  --soft-teal: #e2f3ef;
  --soft-red: #f7e9e9;
  --shadow: 0 16px 36px rgba(34, 45, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 52, 71, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(24, 52, 71, 0.04) 1px, transparent 1px),
    var(--canvas);
  background-size: 34px 34px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 8px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 7px;
  color: #263532;
}

.nav-links a:hover {
  background: var(--soft-teal);
  text-decoration: none;
}

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(198, 138, 44, 0.32), transparent 28%),
    linear-gradient(135deg, #132b3a 0%, #0c5e59 52%, #173a36 100%);
}

.hero-inner,
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 430px;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
}

.hero h1,
.hero .lead {
  color: #fff;
}

.hero .lead {
  color: #e3f2ef;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  margin-top: 0;
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  min-height: 44px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #111;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-panel,
.tool,
.content-card,
.ad-slot,
.result-panel,
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 20px;
  color: var(--ink);
  border: 0;
}

.hero-panel::before {
  content: "Salary tax snapshot";
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.quick-stat:last-child {
  border-bottom: 0;
}

.quick-stat strong {
  font-size: 20px;
}

.section {
  padding: 42px 0;
}

.section + .section {
  padding-top: 20px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-card {
  padding: 22px;
  box-shadow: none;
}

.content-card:hover {
  border-color: rgba(8, 117, 111, 0.45);
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
}

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

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(320px, 1.14fr);
  gap: 22px;
  align-items: start;
}

.tool,
.result-panel {
  padding: 22px;
}

.tool {
  border-top: 5px solid var(--teal);
}

.result-panel {
  border-top: 5px solid var(--maroon);
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bcb3a2;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

input:focus,
select:focus {
  outline: 3px solid rgba(8, 117, 111, 0.18);
  border-color: var(--teal);
}

.result-number {
  font-size: 36px;
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  color: var(--maroon);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.result-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf8f1;
}

.result-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.result-item strong {
  display: block;
  font-size: 18px;
}

.breakdown {
  margin-top: 18px;
  padding: 14px;
  background: #fff7e5;
  border: 1px solid #e6c47f;
  border-radius: 7px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #efe8d8;
}

.ad-slot {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #7a6841;
  background: #fffaf0;
  border-style: dashed;
  box-shadow: none;
  text-align: center;
  font-size: 13px;
}

.ad-slot::before {
  content: "Sponsored";
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: #fff7e5;
  color: #4a3712;
}

.warning {
  border-left-color: var(--maroon);
  background: var(--soft-red);
  color: #5a2027;
}

.article {
  max-width: 850px;
}

.article p,
.article li {
  color: #31413d;
}

.article h2 {
  margin-top: 34px;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #121d22;
  color: #edf4f2;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer a {
  color: #dff6f0;
}

.small {
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner,
  .calculator-layout,
  .grid.two,
  .grid.three,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
  }

  h1 {
    font-size: 36px;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding-top: 34px;
  }

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

  .nav-links {
    gap: 4px;
  }
}
