* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(0, 127, 122, 0.08), rgba(47, 143, 107, 0.04) 44%, rgba(255, 243, 216, 0.55)),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.smart-fold-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 250, 0.9);
  backdrop-filter: blur(12px);
}

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

.returning .site-header,
.returning [data-layer="marketing"] {
  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: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header nav a:not(.btn-primary):not(.jump-tool-btn),
.smart-fold-bar a:not(.btn-primary):not(.jump-tool-btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary,
.jump-tool-btn,
header .btn-primary,
header .jump-tool-btn,
nav .btn-primary,
nav .jump-tool-btn,
.smart-fold-bar .btn-primary,
.smart-fold-bar .jump-tool-btn,
[data-jump-tool] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary) !important;
  color: var(--on-primary, #ffffff) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 127, 122, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.btn-primary:active,
.jump-tool-btn:active,
[data-jump-tool]:active,
.btn-secondary:active,
.chip:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary:hover,
.jump-tool-btn:hover,
[data-jump-tool]:hover {
  background: var(--primary-strong) !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.btn-secondary:hover {
  border-color: rgba(0, 127, 122, 0.38);
  background: #ffffff;
}

.mobile-only {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(36px, 7vw, 88px) clamp(18px, 5vw, 72px) clamp(24px, 5vw, 56px);
}

.hero-copy {
  grid-column: span 7;
}

.hero-card {
  grid-column: span 5;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  letter-spacing: 0;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subhead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof-card,
.pricing-card,
.intake-card,
.deliverable-wrapper,
.workspace-header {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.proof-card {
  max-width: 650px;
  margin-top: 28px;
  padding: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.proof-item {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(0, 127, 122, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-label,
.field-note,
.mini-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.proof-item strong {
  display: block;
  margin-top: 6px;
  font-size: 0.93rem;
}

.pricing-card {
  padding: 24px;
}

.pricing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #7a4a0a;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.billing-toggle,
.segment-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.toggle,
.segment {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.toggle[aria-pressed="true"],
.segment[aria-pressed="true"] {
  border-color: rgba(0, 127, 122, 0.38);
  background: rgba(0, 127, 122, 0.1);
  color: var(--primary-strong);
}

.price {
  margin: 22px 0 4px;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pricing-card .btn-primary[aria-disabled="true"] {
  width: 100%;
  margin-top: 18px;
  opacity: 0.68;
  cursor: not-allowed;
}

.reassurance {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
}

.workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
}

#workspace-title {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
}

.storage-disclosure {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress {
  min-width: 160px;
  text-align: right;
}

.progress-meter {
  overflow: hidden;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--mist);
}

.progress-fill {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 127, 122, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-strong);
  font-weight: 850;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 5fr);
  gap: 20px;
  align-items: start;
}

.intake-card,
.deliverable-wrapper {
  padding: 20px;
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-of-type {
  border-bottom: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
}

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

.field {
  display: grid;
  gap: 6px;
}

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

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

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(37, 67, 88, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

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

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

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 760;
}

.check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.row-list {
  display: grid;
  gap: 8px;
}

.dynamic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dynamic-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--danger);
  font-weight: 900;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deliverable-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.copy-status {
  min-width: 132px;
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 900;
}

.copy-status[data-tone="error"] {
  color: var(--danger);
}

.deliverable-sheet {
  min-height: 560px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(37, 67, 88, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.deliverable-sheet h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.empty-state {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 28px;
  border: 1px dashed rgba(0, 127, 122, 0.28);
  border-radius: 12px;
  background: rgba(232, 240, 239, 0.35);
  color: var(--muted);
  text-align: center;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.doc-meta span {
  white-space: nowrap;
}

.doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

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

.handoff-summary,
.prep-checklist,
.missing-callout,
.handoff-notes {
  margin-top: 22px;
}

.deliverable-sheet h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.98rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-grid div,
.missing-callout,
.status-note {
  border: 1px solid rgba(37, 67, 88, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(232, 240, 239, 0.38);
  padding: 12px;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
}

.deliverable-sheet ul {
  margin: 0;
  padding-left: 20px;
}

.deliverable-sheet li + li {
  margin-top: 6px;
}

.missing-callout {
  background: var(--amber-soft);
  border-color: rgba(183, 121, 31, 0.25);
}

.handoff-notes p,
.muted-note,
.status-note {
  margin: 0 0 14px;
}

.handoff-notes h3:not(:first-child) {
  margin-top: 18px;
}

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

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 35, 57, 0.38);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-panel {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .mobile-only {
    display: inline-flex;
  }

  .site-header nav a:not(.jump-tool-btn) {
    display: none;
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy,
  .hero-card {
    grid-column: auto;
  }

  .proof-grid,
  .field-grid,
  .checkbox-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    grid-template-columns: 1fr;
  }

  .progress {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header,
  .smart-fold-bar {
    padding-inline: 14px;
  }

  .wordmark span:last-child {
    max-width: 170px;
    line-height: 1.1;
  }

  .page-shell {
    padding-inline: 14px;
  }

  .hero-actions,
  .form-actions,
  .deliverable-toolbar,
  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .jump-tool-btn,
  [data-jump-tool] {
    width: 100%;
  }
}

@page {
  margin: 0.5in;
  size: auto;
}

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

  .no-print,
  form,
  nav,
  header,
  footer,
  button,
  [data-layer="marketing"],
  .site-header,
  .smart-fold-bar,
  .workspace-header,
  .intake-card,
  .preset-row,
  .deliverable-toolbar,
  [data-action="print-deliverable"],
  [data-action="copy-summary"],
  [data-action="export-csv"] {
    display: none !important;
  }

  [data-deliverable="sheet"],
  #executive-deliverable {
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .deliverable-card,
  .handoff-section,
  .sheet-card {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
