*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

.smart-fold-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.site-header,
.toolbar,
.smart-fold-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 221, 217, 0.84);
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(12px);
}

.smart-fold-bar {
  display: none;
  min-height: 44px;
  padding-block: 6px;
}

.returning .site-header,
.returning .hero {
  display: none;
}

.returning .smart-fold-bar {
  display: flex;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.trust-note {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-header nav,
.toolbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 100%;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.jump-tool-btn,
[data-jump-tool],
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-width: max-content;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary) !important;
  color: var(--on-primary, #ffffff) !important;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.site-header nav .jump-tool-btn,
.site-header nav [data-jump-tool],
.smart-fold-bar .jump-tool-btn,
.smart-fold-bar [data-jump-tool] {
  background: var(--primary) !important;
  color: var(--on-primary, #ffffff) !important;
}

.jump-tool-btn:active,
[data-jump-tool]:active,
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(18px, 4vw, 48px) clamp(28px, 5vw, 54px);
}

.hero h1,
.section-title,
#workspace-title {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-heading);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
}

.hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions,
.billing-row,
.preset-row,
.status-pills,
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.reset-confirmation {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(155, 90, 22, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

.reset-confirmation[hidden] {
  display: none;
}

.reset-confirmation strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.reset-confirmation p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.reset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn-secondary,
.chip,
.billing-pill,
.status-pill,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.chip,
.billing-pill,
.status-pill {
  cursor: pointer;
}

.chip:hover,
.billing-pill:hover,
.status-pill:hover,
.btn-secondary:hover,
.icon-btn:hover {
  border-color: rgba(0, 127, 122, 0.38);
}

.proof-stack {
  display: grid;
  gap: 16px;
}

.proof-card,
.price-card,
.panel,
.deliverable-wrapper {
  border: 1px solid rgba(217, 221, 217, 0.88);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.proof-card,
.price-card {
  padding: 22px;
}

.proof-header,
.price-header,
.panel-header,
.deliverable-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.small-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-title,
.price {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.progress-rail {
  overflow: hidden;
  height: 10px;
  margin: 20px 0;
  border-radius: 999px;
  background: #e8ebe8;
}

.progress-fill {
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.proof-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.status-attention {
  color: var(--warning);
  font-weight: 800;
}

.status-complete {
  color: var(--primary-dark);
  font-weight: 800;
}

.discount-badge {
  border-radius: 999px;
  background: rgba(155, 90, 22, 0.1);
  color: var(--warning);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.checkout-disabled {
  pointer-events: none;
  opacity: 0.72;
}

.reassurance {
  color: var(--muted);
  font-size: 0.9rem;
}

.page-shell {
  padding: clamp(20px, 4vw, 46px);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(360px, 1.1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}

.workspace-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.completeness-card {
  display: grid;
  gap: 7px;
  min-width: min(100%, 320px);
  max-width: 380px;
  padding: 14px;
  border: 1px solid rgba(217, 221, 217, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

.completeness-card strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.25;
}

.completeness-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.completion-meter {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e8ebe8;
}

#completeness-meter {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--warning);
  transition: width 180ms ease, background 180ms ease;
}

#completeness-meter[data-status="complete"] {
  background: var(--primary);
}

#workspace-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.workspace-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel {
  padding: 18px;
}

.panel h2,
.deliverable-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.intake-form,
.field-grid,
.row-fields {
  display: grid;
  gap: 14px;
}

.validation-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(155, 90, 22, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(155, 90, 22, 0.09);
  color: var(--ink);
}

.validation-summary[hidden] {
  display: none;
}

.validation-summary:focus {
  outline: 3px solid rgba(155, 90, 22, 0.22);
  outline-offset: 3px;
}

.validation-summary strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.25;
}

.validation-summary p,
.validation-summary ul {
  margin: 0;
}

.validation-summary ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
  color: var(--warning);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
}

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

.field,
.document-row {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
}

.field-error {
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

.field-invalid input,
.field-invalid select,
.row-invalid input[aria-invalid="true"],
.row-invalid select[aria-invalid="true"] {
  border-color: rgba(155, 90, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 90, 22, 0.11);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 127, 122, 0.12);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.return-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.return-type label,
.status-pill,
.billing-pill {
  position: relative;
}

.return-type input,
.status-pill input,
.billing-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.return-type span,
.status-pill span,
.billing-pill span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.return-type input:checked + span,
.status-pill input:checked + span,
.billing-pill input:checked + span {
  border-color: var(--primary);
  background: rgba(0, 127, 122, 0.1);
  color: var(--primary-dark);
}

.ledger {
  display: grid;
  gap: 12px;
}

.document-row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.row-fields {
  grid-template-columns: 1fr 1.1fr;
}

.status-pills {
  gap: 8px;
}

.status-pills .status-pill span {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.note-field {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.deliverable-wrapper {
  padding: 18px;
}

.deliverable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.deliverable-sheet {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
}

#executive-deliverable {
  display: grid;
  gap: 16px;
}

#executive-deliverable h3 {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.deliverable-logo {
  max-width: 120px;
  max-height: 54px;
  object-fit: contain;
}

.deliverable-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-date,
.meta-time {
  white-space: nowrap;
}

.summary-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: #f7f5f0;
}

.summary-block strong {
  font-family: var(--font-heading);
}

.deliverable-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.deliverable-section p {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.55;
}

.request-list,
.checklist-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.request-list li strong,
.request-list li span {
  display: block;
}

.request-list li span {
  color: var(--muted);
}

.deliverable-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 127, 122, 0.08);
  color: var(--primary-dark) !important;
  font-weight: 750;
}

.deliverable-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.deliverable-table th,
.deliverable-table td {
  border-bottom: 1px solid var(--border);
  padding: 9px 6px;
  text-align: left;
  vertical-align: top;
}

.free-watermark {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero,
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header,
  .toolbar,
  .smart-fold-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
    padding-inline: 14px;
    gap: 10px;
  }

  .site-header nav,
  .toolbar nav,
  .smart-fold-actions {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .smart-fold-actions {
    margin-left: 0;
    width: 100%;
  }

  .trust-note,
  .site-header nav .btn-secondary,
  .toolbar nav .btn-secondary {
    display: none;
  }

  .hero {
    padding-top: 26px;
  }

  .field-grid,
  .row-fields,
  .return-type {
    grid-template-columns: 1fr;
  }

  .workspace-heading,
  .reset-confirmation,
  .proof-header,
  .price-header,
  .panel-header,
  .deliverable-header {
    display: grid;
  }

  .deliverable-actions {
    justify-content: stretch;
  }

  .deliverable-actions > * {
    width: 100%;
  }
}

@page {
  margin: 10mm;
  size: auto;
}

@media print {
  body,
  main,
  .page-shell,
  .workspace,
  .deliverable-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  form,
  nav,
  header,
  footer,
  button,
  [data-layer="marketing"],
  [data-action="print-deliverable"],
  [data-action="export-csv"],
  [data-action="copy-summary"],
  .smart-fold-bar,
  .workspace-heading,
  .panel {
    display: none !important;
  }

  .deliverable-wrapper {
    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }

  .deliverable-sheet {
    border: 0 !important;
    padding: 0.25in !important;
  }

  .deliverable-sheet,
  .deliverable-section,
  .summary-card,
  .document-row,
  .statutory-block,
  .tax-calc-table,
  .signature-grid,
  tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
a.nav-tools-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  line-height: 1.2;
}
