/* ── Fonts & Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --paper:       #F8F6F1;
  --paper-2:     #F0EDE6;
  --surface:     #FFFFFF;
  --border:      #E4DFD6;
  --border-mid:  #CEC8BC;

  --text-1:      #1A1714;
  --text-2:      #6B6460;
  --text-3:      #9D9894;

  --green:       #1B6B41;
  --green-2:     #2A9158;
  --green-3:     #3DAD6D;
  --green-bg:    #EBF5EF;
  --green-light: #D1EEE0;

  --amber:       #B96B15;
  --amber-bg:    #FEF3E2;
  --amber-light: #FDE8C2;

  --red:         #B42B2B;
  --red-bg:      #FEECEC;

  /* Typography */
  --font-ui:     'Manrope', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --font-display:'Playfair Display', Georgia, serif;

  /* Spacing */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(26,23,20,.05);
  --shadow-sm: 0 1px 4px rgba(26,23,20,.07), 0 2px 8px rgba(26,23,20,.04);
  --shadow-md: 0 4px 16px rgba(26,23,20,.09);
  --shadow-lg: 0 8px 32px rgba(26,23,20,.12);
}

html { scroll-behavior: smooth; font-size: 15px; scroll-padding-top: 68px; }

body {
  background: var(--paper);
  color: var(--text-1);
  font-family: var(--font-ui);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: .75rem 1.25rem;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--text-1);
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
}

.logo-icon.sm { width: 22px; height: 22px; border-radius: 5px; }

.logo-text {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.02em;
  color: var(--text-1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.nav-pro-pill {
  background: var(--green);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: .01em;
  transition: background .15s;
  white-space: nowrap;
}

.nav-pro-pill:hover { background: var(--green-2); }

.btn-ghost-header {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .7rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}

.btn-ghost-header:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── Hero Band ──────────────────────────────────────────────── */
.hero-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.25rem 1.5rem;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-1);
  line-height: 1.25;
}

.hero-sub {
  margin-top: .35rem;
  font-size: .9rem;
  color: var(--text-2);
  font-weight: 400;
}

@media (min-width: 640px) {
  .hero-title { font-size: 2rem; }
  .hero-sub   { font-size: .95rem; }
}

/* ── Tool Layout ────────────────────────────────────────────── */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.tool-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .tool-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .input-panel {
    flex: 0 0 480px;
    position: sticky;
    top: calc(52px + 1.5rem);
  }

  .results-panel { flex: 1; min-width: 0; }
}

/* ── Input Panel ────────────────────────────────────────────── */
.input-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Settings Card ──────────────────────────────────────────── */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.125rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

@media (max-width: 380px) {
  .settings-row {
    grid-template-columns: 1fr;
  }
}

/* ── Field Groups ───────────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.field-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .025em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.optional-tag {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
}

/* Rate input */
.rate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rate-symbol {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--text-2);
  pointer-events: none;
  user-select: none;
}

.rate-input {
  padding-left: 1.75rem;
}

/* Shared input styles */
.text-input,
.rate-input,
.select-input {
  width: 100%;
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--text-1);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .55rem .75rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}

.text-input:focus,
.rate-input:focus,
.select-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,107,65,.12);
  background: var(--surface);
}

.select-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B6460' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 16px;
  padding-right: 2rem;
  cursor: pointer;
}

.mono { font-family: var(--font-mono); }

/* Pro employee bar */
.pro-employee-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: .875rem 1rem;
  box-shadow: var(--shadow-xs);
}

.employee-bar-row {
  display: flex;
  gap: .5rem;
  margin-top: .35rem;
}

.flex-1 { flex: 1; }

/* ── Time Grid Header ───────────────────────────────────────── */
.timegrid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.timegrid-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.02em;
}

.timegrid-hint {
  font-size: .75rem;
  color: var(--text-3);
  font-weight: 400;
}

/* ── Time Grid — Desktop ────────────────────────────────────── */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.time-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.time-grid thead tr {
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}

.time-grid th {
  padding: .6rem .75rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.time-grid th.col-hours { text-align: right; }

.time-grid tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.time-grid tbody tr:last-child { border-bottom: none; }

.time-grid tbody tr:hover { background: var(--paper); }

.time-grid tbody tr.week2-start {
  border-top: 2px solid var(--border-mid);
}

.time-grid td {
  padding: .5rem .75rem;
  vertical-align: middle;
}

.day-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-2);
  width: 2.5rem;
  white-space: nowrap;
}

.date-cell { min-width: 120px; }

.date-input,
.time-grid input[type="time"],
.time-grid input[type="number"],
.time-grid input[type="date"] {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-1);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .35rem .5rem;
  width: 100%;
  min-width: 90px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.time-grid input[type="number"].break-min {
  width: 60px;
  min-width: 50px;
  text-align: right;
}

.time-grid input[type="time"],
.time-grid input[type="date"] {
  min-width: 100px;
}

.time-grid input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(27,107,65,.1);
  background: var(--surface);
}

.hours-display {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--green);
  display: block;
  text-align: right;
  min-width: 48px;
  white-space: nowrap;
}

.hours-display.empty { color: var(--text-3); }

/* ── Time Grid — Mobile Cards ───────────────────────────────── */
@media (max-width: 600px) {
  .table-scroll-wrap {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .time-grid { display: block; }
  .time-grid thead { display: none; }
  .time-grid tbody { display: flex; flex-direction: column; gap: .625rem; }

  .time-grid tbody tr {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-rows: auto auto;
    gap: .5rem .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: .75rem .875rem .75rem .75rem;
    box-shadow: var(--shadow-xs);
    border-bottom: 1px solid var(--border); /* override table reset */
  }

  .time-grid tbody tr:hover { background: var(--surface); }

  .time-grid tbody tr.week2-start {
    border-top: 2px solid var(--green-light);
  }

  /* Col 1 Day label */
  .time-grid td.day-label {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--green);
  }

  /* Col 2 Date */
  .time-grid td.date-cell {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .time-grid td.date-cell .date-input {
    width: 100%;
    min-width: 0;
    font-size: .8rem;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--text-2);
    font-weight: 500;
  }

  .time-grid td.date-cell .date-input:focus {
    box-shadow: none;
    border: none;
    background: transparent;
  }

  /* Col 3 Hours display */
  .time-grid td:nth-child(6) {
    grid-column: 3;
    grid-row: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Row 2: Clock-in, Clock-out, Break */
  .time-grid td:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
    padding: 0;
  }

  .time-grid td:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
    padding: 0;
  }

  .time-grid td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .time-grid input[type="time"] {
    min-width: 0;
    font-size: .8rem;
    padding: .3rem .4rem;
  }

  .time-grid input[type="number"].break-min {
    width: 52px;
    min-width: 48px;
    font-size: .78rem;
    padding: .3rem .35rem;
    text-align: right;
  }
}

/* ── Calculate Button ───────────────────────────────────────── */
.btn-calculate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  padding: .875rem 1.5rem;
  border: none;
  border-radius: var(--r-lg);
  cursor: pointer;
  letter-spacing: -.01em;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(27,107,65,.25), 0 1px 2px rgba(27,107,65,.15);
}

.btn-calculate:hover {
  background: var(--green-2);
  box-shadow: 0 4px 16px rgba(27,107,65,.3);
  transform: translateY(-1px);
}

.btn-calculate:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(27,107,65,.2);
}

.btn-calculate:disabled {
  background: var(--text-3);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn-calc-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .15s;
}

.btn-calculate:hover .btn-calc-arrow {
  transform: translateX(3px);
}

.free-limit-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ── Results Panel ──────────────────────────────────────────── */
.results-panel {
  min-height: 200px;
}

/* Placeholder */
.results-placeholder {
  background: var(--surface);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
}

.placeholder-graphic svg {
  width: 100px;
  height: 84px;
  opacity: .85;
}

.placeholder-text {
  font-size: .925rem;
  color: var(--text-2);
  max-width: 280px;
  line-height: 1.5;
}

.placeholder-text strong { color: var(--green); }

.placeholder-hint {
  font-size: .78rem;
  color: var(--text-3);
}

/* Results content */
.results-content {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* ── Pay Hero ───────────────────────────────────────────────── */
.pay-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(27,107,65,.25), 0 1px 4px rgba(27,107,65,.1);
  position: relative;
  overflow: hidden;
}

.pay-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,.07)'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  pointer-events: none;
}

.pay-hero-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .375rem;
}

.pay-hero-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}

@media (min-width: 480px) {
  .pay-hero-amount { font-size: 4rem; }
}

.pay-hero-period {
  margin-top: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ── Hours Chips ────────────────────────────────────────────── */
.hours-chips {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
}

.chip {
  flex: 1;
  min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: .75rem .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  box-shadow: var(--shadow-xs);
}

.chip-regular { border-top: 3px solid var(--green); }
.chip-ot      { border-top: 3px solid var(--amber); }
.chip-dt      { border-top: 3px solid var(--red); }

.chip-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
}

.chip-regular .chip-num { color: var(--green); }
.chip-ot      .chip-num { color: var(--amber); }
.chip-dt      .chip-num { color: var(--red); }

.chip-lbl {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Pay Breakdown ──────────────────────────────────────────── */
.pay-breakdown,
.perday-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.breakdown-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: .75rem 1rem .5rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper-2);
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.breakdown-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.breakdown-table tbody tr:last-child { border-bottom: none; }

.breakdown-table tbody tr:hover { background: var(--paper); }

.breakdown-table td {
  padding: .6rem 1rem;
  color: var(--text-1);
}

.total-row { background: var(--green-bg) !important; }
.total-row td { color: var(--green); font-size: .925rem; }

.td-right { text-align: right; }

.rate-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 4px;
  padding: .05rem .3rem;
  vertical-align: middle;
  font-family: var(--font-mono);
}

.rate-tag.dt {
  background: var(--red-bg);
  color: var(--red);
}

.ot-color { color: var(--amber); }
.dt-color { color: var(--red); }

/* ── Daily Table ────────────────────────────────────────────── */
.perday-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .825rem;
  min-width: 380px;
}

.perday-table th {
  padding: .5rem .75rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.perday-table th:not(:first-child) { text-align: right; }

.perday-table td {
  padding: .5rem .75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .8rem;
  text-align: right;
  color: var(--text-1);
}

.perday-table td:first-child {
  text-align: left;
  font-family: var(--font-ui);
  font-size: .82rem;
}

.perday-table tbody tr:hover { background: var(--paper); }

.ot-val  { color: var(--amber); font-weight: 500; }
.dt-val  { color: var(--red);   font-weight: 500; }

/* ── Result Actions ─────────────────────────────────────────── */
.result-actions {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: .55rem .9rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.btn-action svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-action:hover {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}

.btn-action.ghost {
  background: transparent;
  border-style: dashed;
  color: var(--text-2);
}

.disclaimer {
  font-size: .75rem;
  color: var(--text-3);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

/* ── Outline & Link Buttons ─────────────────────────────────── */
.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}

.btn-outline-sm:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-outline-sm.danger:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-link-sm {
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.btn-link-sm:hover { color: var(--green-2); }

/* ── Pro Section ────────────────────────────────────────────── */
.pro-section {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pro-inner {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 800px;
}

@media (min-width: 700px) {
  .pro-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .pro-text { flex: 1; }
  .pro-cta-wrap { flex-shrink: 0; min-width: 180px; }
}

.pro-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
}

.pro-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  line-height: 1.3;
}

.pro-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.55;
}

.pro-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.pro-features li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--text-1);
}

.pro-features li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.pro-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}

.pro-price-block {
  display: flex;
  align-items: baseline;
  gap: .15rem;
}

.pro-price-amt {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.03em;
}

.pro-price-mo {
  font-size: .9rem;
  color: var(--text-2);
  font-weight: 500;
}

.btn-pro {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  padding: .7rem 1.25rem;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.btn-pro:hover { background: var(--green-2); }

.pro-cta-note {
  font-size: .72rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── Social Proof ───────────────────────────────────────────── */
.social-proof {
  text-align: center;
  padding: .875rem;
  font-size: .82rem;
  color: var(--text-2);
  font-weight: 500;
}

.social-proof strong { color: var(--text-1); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section { margin-top: 2.5rem; }

.faq-inner {
  max-width: 760px;
}

.faq-main-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: .5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.125rem;
  font-size: .925rem;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  gap: .75rem;
  transition: background .1s;
  line-height: 1.4;
}

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

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .2s, color .15s;
}

details[open] .faq-q::after {
  transform: rotate(45deg);
  color: var(--green);
}

.faq-q:hover { background: var(--paper); }

.faq-a {
  padding: 0 1.125rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.faq-a p {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: .625rem;
}

.faq-a p:first-child { margin-top: .875rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 1.25rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.footer-nav a {
  font-size: .82rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s;
}

.footer-nav a:hover { color: var(--green); }

.footer-legal {
  font-size: .75rem;
  color: var(--text-3);
  line-height: 1.55;
  max-width: 600px;
}

.footer-copy {
  font-size: .72rem;
  color: var(--text-3);
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
  animation: fadeOverlay .18s ease;
}

@media (min-width: 480px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 1.5rem 1.25rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow-lg);
  animation: slideUpModal .22s cubic-bezier(.16,1,.3,1);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 480px) {
  .modal-box {
    border-radius: var(--r-xl);
    padding: 1.75rem 1.5rem;
    animation: scaleInModal .2s cubic-bezier(.16,1,.3,1);
  }
}

@keyframes slideUpModal {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes scaleInModal {
  from { transform: scale(.95) translateY(8px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);   opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  background: var(--paper-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  color: var(--text-2);
}

.modal-close svg { width: 14px; height: 14px; }

.modal-close:hover { background: var(--border); }

.modal-pro-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 4px;
  align-self: flex-start;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  line-height: 1.2;
}

.modal-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.5;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: .2rem;
}

.modal-price-amt {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-1);
}

.modal-price-mo {
  font-size: .9rem;
  color: var(--text-2);
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.modal-features li {
  font-size: .85rem;
  color: var(--text-2);
  padding-left: 1.2rem;
  position: relative;
}

.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.modal-cta {
  margin-top: .25rem;
}

.modal-fine {
  font-size: .75rem;
  color: var(--text-3);
  text-align: center;
  line-height: 1.4;
}

.modal-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Status messages */
.status-msg {
  font-size: .82rem;
  padding: .6rem .875rem;
  border-radius: var(--r-md);
  font-weight: 500;
  margin-top: .25rem;
}

.status-msg.success { background: var(--green-bg); color: var(--green); }
.status-msg.error   { background: var(--red-bg);   color: var(--red);   }

/* ── Print Styles ───────────────────────────────────────────── */
.print-header { display: none; }

@media print {
  .site-header,
  .hero-band,
  .input-panel,
  .pro-section,
  .social-proof,
  .faq-section,
  .site-footer,
  .modal-overlay,
  .result-actions,
  .results-placeholder,
  .disclaimer,
  .hours-chips { display: none !important; }

  body {
    background: white;
    color: black;
    font-size: 11pt;
    font-family: var(--font-ui);
  }

  main { max-width: 100%; padding: 0; }

  .tool-wrap { display: block; }

  .results-panel {
    width: 100%;
  }

  .results-content {
    gap: 12pt;
  }

  .print-header {
    display: block !important;
    margin-bottom: 12pt;
    padding-bottom: 8pt;
    border-bottom: 1pt solid #ccc;
  }

  .pay-hero {
    background: #f0f0f0 !important;
    color: black !important;
    box-shadow: none !important;
    border: 1pt solid #ccc;
    padding: 12pt 16pt;
  }

  .pay-hero::before { display: none; }

  .pay-hero-label { color: #555 !important; }
  .pay-hero-amount { color: black !important; font-size: 28pt; }
  .pay-hero-period { color: #555 !important; }

  .pay-breakdown,
  .perday-wrap {
    border: 1pt solid #ccc;
    box-shadow: none;
    break-inside: avoid;
  }

  .breakdown-table td,
  .perday-table td,
  .perday-table th { padding: 5pt 8pt; }

  .total-row { background: #e8f5ef !important; }
}
