@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   BidReady — Style System
   Clean, high-contrast, conversion-focused visual system
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Primary */
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --accent: #d97706;
  --accent-soft: #ffedd5;

  /* Gray scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #2563eb;
  --info-light: #dbeafe;
  --purple: #7c3aed;
  --purple-light: #ede9fe;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Navigation --- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--gray-900);
  background: var(--gray-100);
  text-decoration: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-medium {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled,
.btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn-danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  line-height: 1;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

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

.form-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* --- Cards --- */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  color: var(--gray-600);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

/* --- Status Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: capitalize;
}

.badge-draft {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-generating {
  background: var(--info-light);
  color: var(--info);
  animation: pulse 2s ease-in-out infinite;
}

.badge-complete {
  background: var(--success-light);
  color: var(--success);
}

.badge-sent {
  background: var(--purple-light);
  color: var(--purple);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.table td {
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

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

.table tr:hover td {
  background: var(--gray-50);
}

.table-title {
  font-weight: 500;
  color: var(--gray-900);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Page Header --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--gray-300);
}

.empty-state h3 {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Login Page --- */
.login-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.login-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

.login-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: var(--success-light);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.login-success.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.login-success h3 {
  color: var(--success);
  margin-bottom: 0.25rem;
}

.login-success p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* --- Proposal Sections (edit/share) --- */
.proposal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.proposal-header-info h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.editable-title {
  display: inline-block;
  position: relative;
  min-width: 220px;
}

.editable-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.editable-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -1.5rem;
  top: 0.65rem;
  color: var(--gray-400);
  opacity: 0;
  transition: opacity 0.15s;
}

.editable-title-wrap:hover .editable-title-icon,
.editable-title:focus + .editable-title-icon {
  opacity: 1;
}

.proposal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.meta-field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-field-label {
  color: var(--gray-500);
}

.meta-field-value {
  font-weight: 600;
  color: var(--gray-700);
  min-width: 52px;
}

.proposal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.save-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-500);
}

.save-status-icon {
  font-size: 0.75rem;
  line-height: 1;
}

.save-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.save-status-clean {
  color: var(--gray-500);
  background: #fff;
  border-color: var(--gray-200);
}

.save-status-dirty {
  color: var(--warning);
  background: var(--warning-light);
  border-color: #f6cf8b;
}

.save-status-saving {
  color: var(--primary);
  background: var(--primary-50);
  border-color: var(--primary-200);
}

.save-status-saving .save-status-dot,
.save-status-dirty .save-status-dot {
  animation: pulse 1.1s infinite;
}

.save-status-saved {
  color: var(--success);
  background: var(--success-light);
  border-color: #9be4c0;
}

.save-status-error {
  color: var(--danger);
  background: var(--danger-light);
  border-color: #fecaca;
}

.save-dirty-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 2px #fff;
  top: -4px;
  right: -4px;
}

#save-btn {
  position: relative;
}

.save-btn-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 0 2px #fff;
  display: none;
}

#save-btn.has-unsaved .save-btn-dot {
  display: inline-block;
}

.editable-field {
  outline: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  transition: all 0.15s;
  border: 1px dashed transparent;
}

.editable-field:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.editable-field:focus {
  border-color: var(--primary);
  border-style: solid;
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.editable-inline {
  outline: none;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  margin: -2px -6px;
  transition: all 0.15s;
  border: 1px dashed transparent;
}

.editable-inline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.editable-inline:focus {
  border-color: var(--primary);
  border-style: solid;
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-100);
}

[contenteditable][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--gray-400);
  pointer-events: none;
}

.pricing-table-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 600;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem;
}

.pricing-table td {
  border-bottom: 1px solid var(--gray-100);
  padding: 0.75rem;
  vertical-align: top;
}

.pricing-table tbody tr:hover {
  background: var(--gray-50);
}

.pricing-table tbody tr.active-row {
  background: var(--primary-50);
}

.row-number {
  width: 20px;
  text-align: center;
  color: var(--gray-300);
  font-size: 0.6875rem;
}

.editable-cell {
  outline: none;
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  margin: -0.375rem -0.5rem;
  transition: background 0.15s, box-shadow 0.15s;
  cursor: text;
}

.editable-cell:hover {
  background: var(--gray-50);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}

.editable-cell:focus {
  background: var(--primary-50);
  box-shadow: inset 0 0 0 2px var(--primary-200);
}

.cell-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.cell-description {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.cell-cost {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-total-banner {
  border: 1px solid var(--primary-100);
  background: var(--primary-50);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.pricing-total-label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  text-transform: uppercase;
}

.pricing-total-row {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-total-value {
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-family: var(--font-display);
}

.pricing-total-pill {
  font-size: 0.6875rem;
  color: var(--primary);
  background: var(--primary-100);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-weight: 600;
}

.payment-terms-editable {
  border-color: var(--gray-300);
  min-height: 64px;
}

.btn-delete-row {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-delete-row:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.btn-add-block {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 1px dashed var(--primary-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
  margin-top: 0.75rem;
}

.btn-add-block:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  border-style: solid;
}

.btn-add-inline {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  padding: 4px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
}

.btn-add-inline:hover {
  background: var(--primary-50);
}

.editable-list {
  margin-top: 0.25rem;
}

.editable-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
}

.editable-list-item .bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-400);
  margin-top: 10px;
  flex-shrink: 0;
}

.editable-list-item .item-text {
  flex: 1;
  outline: none;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  border-bottom: 1px dashed transparent;
}

.editable-list-item .item-text:hover {
  border-bottom-color: var(--gray-300);
  background: var(--gray-50);
}

.editable-list-item .item-text:focus {
  border-bottom-color: var(--primary);
  background: var(--primary-50);
}

.btn-delete-item {
  opacity: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.15s;
}

.editable-list-item:hover .btn-delete-item {
  opacity: 1;
}

.btn-delete-item:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.editable-card {
  position: relative;
  border: 1px solid var(--gray-200);
}

.editable-card .btn-delete-row {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.timeline-duration-row {
  margin-bottom: 0.75rem;
}

.milestone-item {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.milestone-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.milestone-duration {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.deliverable-item {
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.75rem;
}

.deliverable-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.deliverable-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.term-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  margin-bottom: 0.75rem;
}

.term-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.term-item p {
  font-size: 0.875rem;
}

.contact-message {
  margin-top: 1rem;
}

.urgency-text {
  margin-top: 0.75rem;
}
  box-shadow: inset 0 0 0 1px var(--gray-200);
}

.editable-cell:focus {
  background: var(--primary-50);
  box-shadow: inset 0 0 0 2px var(--primary-200);
}

.cell-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.cell-description {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.cell-cost {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* Subsections within proposal sections */
.subsection {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.subsection:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.subsection h4 {
  font-size: 0.9375rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.deliverable-item {
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.75rem;
}

.deliverable-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.deliverable-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.milestone-item {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.milestone-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.milestone-duration {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.pricing-item-info {
  flex: 1;
}

.pricing-item-info h4 {
  margin-bottom: 0.125rem;
}

.pricing-item-info p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.pricing-cost {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  white-space: nowrap;
  margin-left: 1rem;
}

.pricing-total {
  padding: 1rem;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-100);
  margin-bottom: 0.75rem;
}

.pricing-total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-weight: 600;
}

.pricing-total-main {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pricing-total-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.pricing-total-badge {
  background: var(--primary-100);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
}

.pricing-table-wrap {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  text-align: left;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.625rem 0.75rem;
}

.pricing-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.pricing-table tbody tr:hover {
  background: var(--gray-50);
}

.pricing-row-number {
  width: 32px;
  color: var(--gray-400);
  font-size: 0.6875rem;
  text-align: center;
}

.pricing-delete-cell {
  width: 44px;
  text-align: right;
}

.btn-delete-row {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray-300);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 1.1rem;
  line-height: 1;
}

.btn-delete-row:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.btn-add-block {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 1px dashed var(--primary-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}

.btn-add-block:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  border-style: solid;
}

.payment-terms-wrap {
  margin-top: 1rem;
}

.payment-terms-wrap h4 {
  font-size: 0.875rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.payment-terms-editable {
  min-height: 64px;
  border-color: var(--gray-300);
}

.term-item {
  margin-bottom: 1rem;
}

.term-item h4 {
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.term-item p {
  font-size: 0.875rem;
}

.cta-steps {
  margin: 0.75rem 0 0.75rem 1.5rem;
}

.cta-steps li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-message {
  padding: 1rem;
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1rem;
}

.urgency-text {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* --- Share View --- */
.share-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.share-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--primary);
}

.share-header h1 {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.share-meta {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.share-client-info {
  display: inline-flex;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.875rem;
}

.share-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.share-footer a {
  color: var(--primary);
  font-weight: 500;
}

.share-container[style*="--brand-primary"] .share-header {
  border-bottom-color: var(--brand-primary);
}

.share-container[style*="--brand-primary"] .share-header h1 {
  color: var(--brand-primary);
}

.share-container[style*="--brand-primary"] .pricing-cost {
  color: var(--brand-primary);
}

.share-container[style*="--brand-accent"] .contact-message {
  border-left-color: var(--brand-accent);
}

/* --- Loading / Spinner --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
  display: none;
}

.loading-text {
  margin-top: 1rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
}

.loading-subtext {
  margin-top: 0.25rem;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.progress-bar-wrapper {
  width: 240px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 9999px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.5s ease;
  animation: progressIndeterminate 2s ease-in-out infinite;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  min-width: 300px;
  max-width: 420px;
  pointer-events: auto;
  animation: slideIn 0.3s ease;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.removing {
  opacity: 0;
  transform: translateX(100%);
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-info {
  border-left: 3px solid var(--primary);
}

.toast-message {
  flex: 1;
  color: var(--gray-700);
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.125rem;
  line-height: 1;
}

.toast-close:hover {
  color: var(--gray-600);
}

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-backdrop.visible .modal {
  transform: scale(1);
}

.modal-header {
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.125rem;
}

.modal-body {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes progressIndeterminate {
  0% { width: 0%; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .nav {
    height: auto;
    min-height: var(--nav-height);
  }

  .nav-inner {
    height: auto;
    padding: 0.625rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 1.125rem;
  }

  .container,
  .container-narrow,
  .container-medium {
    padding: 1.25rem 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .table th,
  .table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  .proposal-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .nav-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
  }

  #logout-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    flex: 1 1 auto;
    justify-content: center;
    white-space: normal;
  }

  .toast {
    min-width: auto;
    max-width: calc(100vw - 2rem);
  }

  .share-container {
    padding: 2rem 1rem;
  }

  .share-header h1 {
    font-size: 1.75rem;
  }

  .share-client-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .login-card {
    padding: 1.75rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 2rem;
  }
}

/* --- Error Page --- */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--gray-200);
  margin-bottom: 0.5rem;
}

.error-page h2 {
  margin-bottom: 0.75rem;
}

.error-page p {
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Create Page --- */
.create-form-wrapper {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ============================================================
   Landing Page Styles
   BidReady rebrand
   ============================================================ */

.landing-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-section {
  padding: 5rem 0;
}

.landing-section-alt {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-header-centered {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-centered h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 5.75rem 0 4rem;
  background:
    radial-gradient(900px 380px at 50% -10%, var(--primary-100), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #f8fdfa 0%, #ffffff 68%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--primary-200);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-headline {
  margin: 1.35rem auto 1rem;
  max-width: 920px;
  font-size: clamp(2.2rem, 5.8vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-highlight {
  color: var(--primary);
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.05em;
  height: 0.24em;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent-soft), #fff2d9);
  border-radius: 999px;
}

.hero-subheadline {
  max-width: 740px;
  margin: 0 auto 1.9rem;
  font-size: 1.1rem;
  color: var(--gray-600);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero-cta-note {
  font-size: 0.825rem;
  color: var(--gray-500);
}

.btn-xl {
  padding: 0.98rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.hero-signals {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.signal-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.signal-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.signal-card span {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.problem-grid,
.steps-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.problem-card,
.step-card,
.feature-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: #fff;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.problem-card:hover,
.step-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.problem-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  background: var(--primary-50);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-number {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.feature-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 0.9rem;
  background: var(--accent-soft);
  color: #8a4b07;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.pricing-plan {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-plan-featured {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.plan-badge {
  position: absolute;
  top: -0.62rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  font-size: 0.71rem;
  font-weight: 700;
}

.plan-header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
}

.plan-price span {
  font-size: 0.95rem;
  color: var(--gray-500);
  font-weight: 500;
}

.plan-desc {
  font-size: 0.87rem;
}

.plan-features {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}

.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.plan-cta {
  width: 100%;
}

.pricing-compare {
  text-align: center;
  margin-top: 1.55rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-size: 0.96rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.faq-item summary::after {
  content: "+";
  color: var(--gray-500);
}

.faq-item[open] summary::after {
  content: "\2212";
}

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

.faq-item p {
  padding: 0 1.15rem 1rem;
  font-size: 0.9rem;
}

.landing-cta-section {
  background:
    radial-gradient(680px 220px at 50% 0%, #e6fffa, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
}

.cta-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.65rem;
}

.cta-block p {
  margin-bottom: 1.7rem;
  font-size: 1.04rem;
}

.landing-footer {
  padding: 1.8rem 0;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.footer-text {
  font-size: 0.85rem;
}

.landing-hero .hero-badge,
.landing-hero .hero-headline,
.landing-hero .hero-subheadline,
.landing-hero .hero-cta-group,
.landing-hero .hero-signals,
.problem-card,
.step-card,
.feature-card {
  animation: bidready-rise 0.55s ease both;
}

.landing-hero .hero-headline {
  animation-delay: 0.06s;
}

.landing-hero .hero-subheadline {
  animation-delay: 0.11s;
}

.landing-hero .hero-cta-group {
  animation-delay: 0.16s;
}

.landing-hero .hero-signals {
  animation-delay: 0.22s;
}

.problem-grid > :nth-child(2),
.steps-grid > :nth-child(2),
.features-grid > :nth-child(2) {
  animation-delay: 0.08s;
}

.problem-grid > :nth-child(3),
.steps-grid > :nth-child(3),
.features-grid > :nth-child(3) {
  animation-delay: 0.14s;
}

@keyframes bidready-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-signals,
  .problem-grid,
  .steps-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 3.5rem 0;
  }

  .hero-signals {
    max-width: 550px;
    margin: 2rem auto 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .landing-container,
  .landing-container-narrow {
    padding: 0 1rem;
  }

  .landing-hero {
    padding-top: 4.5rem;
  }

  .btn-xl {
    width: 100%;
    max-width: 320px;
  }
}
