/* =========================================================================
   PayParity — 8th Pay Commission Salary Calculator
   Theme: "Treasury Slip meets Indie SaaS" (BurgerParity Neobrutalist design system)
   Warm cream canvas, treasury ink / saffron / mustard accents, chunky Calistoga display,
   hard offset shadows (sticker press), and floating sidebar rail.
   ========================================================================= */

:root {
  /* Palette */
  --saffron: #e4502a;
  --saffron-deep: #c23c1c;
  --mustard: #f6b42b;
  --gold: #ffd24d;
  --green: #2b8a3e;
  --green-light: #e6f4ea;
  --navy: #19324d;
  --navy-light: #e8f0fe;
  --cream: #fbf3e2;
  --cream-deep: #f3e7cd;
  --paper: #fffdf7;
  --char: #211b16;
  --char-soft: #5c5044;
  --muted: #8c7e72;

  /* Typography */
  --font-display: "Calistoga", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  /* Shape & Depth */
  --radius: 16px;
  --radius-lg: 26px;
  --radius-sm: 8px;
  --border: 2.5px solid var(--char);
  --shadow: 6px 6px 0 var(--char);
  --shadow-sm: 3px 3px 0 var(--char);
  --shadow-lg: 8px 8px 0 var(--char);

  /* Layout */
  --rail-w: 275px;
  --gap: clamp(16px, 2.4vw, 28px);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--char);
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 560px at 10% -10%, #ffe6b0 0%, transparent 55%),
    radial-gradient(820px 520px at 105% 5%, #ffd6c6 0%, transparent 50%),
    radial-gradient(700px 500px at 50% 110%, #fff2cc 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--char);
  line-height: 1.15;
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

a:hover {
  color: var(--char);
}

.marker {
  background: linear-gradient(180deg, transparent 60%, var(--gold) 60%);
  padding: 0 4px;
}

.marker-green {
  background: linear-gradient(180deg, transparent 60%, #a8e6cf 60%);
}

.marker-saffron {
  background: linear-gradient(180deg, transparent 60%, #ffc4b3 60%);
}

/* Shell Layout */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--gap);
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  gap: var(--gap);
  align-items: start;
}

/* Floating Left Rail */
.rail {
  position: sticky;
  top: var(--gap);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--char);
}

.brand-badge {
  font-size: 32px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.brand-name .accent {
  color: var(--saffron);
}

.rail-tag {
  font-size: 13.5px;
  color: var(--char-soft);
  margin: 0;
  line-height: 1.4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  color: var(--char);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--cream);
  border-color: var(--char);
  transform: translateX(3px);
}

.nav-link.is-active {
  background: var(--char);
  color: var(--cream);
}

.nav-link.is-active:hover {
  background: var(--char);
  color: var(--cream);
  border-color: var(--char);
}

.nav-ico {
  font-size: 16px;
}

.nav-soon {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--char);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--char);
  font-weight: 800;
}

.rail-foot {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 2px dashed var(--cream-deep);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(43, 138, 62, 0.2);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.rail-made {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Main Stage */
.stage {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Hero Section */
.hero {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--cream);
  border: 1.5px solid var(--char);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5.2vw, 54px);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--char-soft);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 999px;
  border: var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-primary {
  background: var(--saffron);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--saffron-deep);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--char);
  color: #fff;
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--char);
}

.btn-ghost {
  background: var(--paper);
  color: var(--char);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--cream);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--char);
  color: var(--char);
}

.btn-ghost:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--char);
}

.proof {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Showcase Section */
.showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  align-items: stretch;
}

/* The Receipt Card (Key design hallmark from BurgerParity) */
.receipt {
  background: #fffdf9;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, #f4edd8 31px, #f4edd8 32px);
}

.receipt::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10px;
  right: 10px;
  height: 6px;
  background: radial-gradient(circle, transparent, transparent 50%, #fffdf9 50%, #fffdf9 100%);
  background-size: 12px 12px;
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px dashed var(--char-soft);
  padding-bottom: 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dotted rgba(33, 27, 22, 0.15);
}

.receipt-row:last-of-type {
  border-bottom: none;
}

.receipt-row .r-label {
  display: flex;
  flex-direction: column;
}

.receipt-row .r-label span {
  font-weight: 700;
  color: var(--char);
}

.receipt-row .r-label em {
  font-size: 12px;
  color: var(--char-soft);
  font-style: normal;
}

.receipt-row .r-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--char);
}

.receipt-row.is-highlight {
  background: rgba(246, 180, 43, 0.2);
  margin: 4px -8px;
  padding: 8px 8px;
  border-radius: 8px;
}

.receipt-row.is-total {
  border-top: 2px solid var(--char);
  margin-top: 8px;
  padding-top: 12px;
}

.receipt-row.is-total .r-price {
  font-size: 20px;
  color: var(--saffron-deep);
}

.receipt-note {
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px dashed var(--char-soft);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--char-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stamp-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid var(--saffron);
  color: var(--saffron);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transform: rotate(-3deg);
}

.showcase-aside {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-kicker {
  font-size: 28px;
  margin-bottom: 14px;
}

/* Calculator Panel */
.calc-panel {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 36px);
}

.calc-lead {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--char-soft);
  margin-bottom: 20px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--char);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.field-input, .select-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--char);
  outline: none;
  transition: all 0.15s ease;
}

.field-input:focus, .select-input:focus {
  background: #fffdf5;
  border-color: var(--saffron);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--char);
}

.price-input {
  position: relative;
  display: flex;
  align-items: center;
}

.price-cur {
  position: absolute;
  left: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--char-soft);
  pointer-events: none;
}

.price-input input {
  padding-left: 36px;
}

/* Presets & Chips */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--char);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--char);
  transition: all 0.1s ease;
  white-space: nowrap;
}

.chip-btn:hover {
  background: var(--gold);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--char);
}

.chip-btn.is-active {
  background: var(--char);
  color: var(--cream);
}

/* Toggle Switch */
.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.toggle-opt {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--char);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.toggle-opt.is-on {
  background: var(--char);
  color: #fff;
  box-shadow: 1px 1px 0 var(--char);
}

/* Fitment Factor Bar */
.fitment-box {
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.fitment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.fitment-value-tag {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  background: var(--saffron);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--char);
  box-shadow: 2px 2px 0 var(--char);
}

.fitment-slider {
  width: 100%;
  accent-color: var(--saffron);
  cursor: pointer;
  margin: 10px 0;
}

.fitment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.calc-go {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  box-shadow: var(--shadow);
}

/* Strategy Cards */
.strategy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.strat {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.strat h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.strat-tag {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--cream);
  border: 1.5px solid var(--char);
  padding: 2px 8px;
  border-radius: 6px;
}

.strat p {
  font-size: 14.5px;
  color: var(--char-soft);
  margin: 0;
}

/* Results / Comparison Section */
.calc-results {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 36px);
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--cream-deep);
  padding-bottom: 16px;
}

.results-title {
  font-size: 26px;
  margin: 0;
}

.results-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.results-search {
  padding: 8px 14px;
  font-size: 14px;
  border: 2px solid var(--char);
  border-radius: 999px;
  background: #fff;
  outline: none;
}

/* Comparison Cards Grid */
.comparison-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.banner-card {
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.banner-card .b-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--char-soft);
  margin-bottom: 6px;
}

.banner-card .b-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--char);
}

.banner-card.is-hike {
  background: var(--green-light);
  border-color: var(--green);
}

.banner-card.is-hike .b-val {
  color: var(--green);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
  margin-bottom: 20px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.results-table th {
  background: var(--cream);
  padding: 12px 16px;
  font-weight: 800;
  border-bottom: 2px solid var(--char);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--char);
}

.results-table th.num, .results-table td.num {
  text-align: right;
  font-family: var(--font-mono);
}

.results-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: var(--char);
}

.results-table tr:hover {
  background: #fffdf5;
}

.results-table tr.highlight-row {
  background: rgba(246, 180, 43, 0.15);
  font-weight: 700;
}

.tag-hike {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
}

/* Content Sections & Grid */
.section {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.section-title {
  font-size: clamp(26px, 3.8vw, 36px);
  margin-bottom: 24px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.step {
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--char);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--char-soft);
  margin: 0;
}

/* FAQ Accordion */
.faq details {
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0 var(--char);
  transition: all 0.15s ease;
}

.faq details[open] {
  background: #fff;
}

.faq summary {
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--saffron);
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--char-soft);
  line-height: 1.6;
}

/* Footer */
.site-foot {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--cream-deep);
  padding-bottom: 14px;
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 19px;
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Guide / Post Cards Grid (Same as BurgerParity) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.guide-card {
  background: var(--cream);
  border: 2px solid var(--char);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--char);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.guide-card:hover {
  background: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--char);
  color: var(--char);
}

.guide-card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--char);
}

.guide-card p {
  font-size: 14.5px;
  color: var(--char-soft);
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.5;
}

.guide-more {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--saffron-deep);
}

.post-date {
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quick-links-strip {
  margin-top: 18px;
  font-size: 14px;
  color: var(--char-soft);
  font-weight: 600;
}

.quick-links-strip a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 4px;
}

/* Responsive */
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .rail {
    position: static;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

/* Print Styles for Physical Pay Slip */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .rail, .calc-panel, .cta-row, .results-actions, .site-foot, .strategy-cards {
    display: none !important;
  }
  .receipt, .calc-results {
    box-shadow: none;
    border: 1px solid #000;
  }
}
