:root {
  --brand-orange: #f57c00;
  --brand-orange-dark: #db6f00;
  --bg: #f6f7f9;
  --text: #202124;
  --muted: #5f6368;
  --card: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

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

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.app-header-title {
  flex: 1;
  text-align: center;
}

.back-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  flex: 0 0 36px;
}

.header-slot {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

a {
  color: #f36400;
}

.page-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 56px;
  overscroll-behavior-y: contain;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.card,
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.hero-card h1 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.2;
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-bullets {
  margin: 0 0 12px;
  padding-left: 18px;
}

.hero-bullets li {
  margin: 6px 0;
}

.hero-pricing .price {
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-cta {
  margin-top: 16px;
}

.hero-video-placeholder {
  margin: 14px 0 18px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.input,
textarea,
input[type="tel"],
input[type="text"],
input[type="file"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  margin-top: 6px;
  margin-bottom: 12px;
  background: #fff;
}

label {
  font-weight: 600;
}

.btn-primary,
.btn-orange,
.btn-ghost {
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 12px 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.btn-primary,
.btn-orange {
  width: 100%;
  background: var(--brand-orange);
  color: #fff;
}

.btn-primary:hover,
.btn-orange:hover {
  background: var(--brand-orange-dark);
}

.btn-primary {
  background: #f36400;
  border: none;
  font-size: 1.5rem;
  padding: 22px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(243,100,0,.4);
  width: 100%;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #1f2937;
}

.btn-primary.lg,
.btn-orange.lg {
  min-height: 68px;
  font-size: 1.18rem;
}

.narrow {
  max-width: 460px;
  margin: 0 auto;
}

.step {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.compact-list li {
  padding: 8px 0;
}

.list-title {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.list-row-link {
  display: block;
  text-decoration: none;
}

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

.preview {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

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

.photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.photo-tile {
  position: relative;
}

.photo-remove-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 20px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #64748b;
  text-decoration: underline;
}

.empty-state {
  opacity: 0.8;
  font-size: 1rem;
}

.section-spacing {
  margin-bottom: 32px;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .page-container {
    padding: 28px 20px 30px;
  }

  .card,
  .hero-card {
    padding: 28px;
  }

  .btn-primary,
  .btn-orange {
    width: auto;
    min-width: 220px;
  }
}

.template-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.template-btn {
  width: 100%;
  text-align: left;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #111827;
}

.template-btn.selected {
  border-color: var(--brand-orange);
  background: #fff7ed;
}

.template-name {
  display: block;
  font-weight: 700;
}

.template-meta {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.price-box {
  font-size: 1.7rem;
  font-weight: 800;
  color: #111827;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}

.preview-doc {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.preview-section {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.preview-section:last-child {
  border-bottom: 0;
}

.preview-section h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.preview-section p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.generated-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.ai-reason {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 10px;
  padding: 10px;
}

.ok {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 8px 10px;
}

.settings-saved-indicator {
  margin-left: auto;
  color: #94a3b8;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .85rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.settings-saved-indicator:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.status-badge {
  display: inline-block;
  margin: 8px 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  background: #e5e7eb;
  color: #1f2937;
}

.status-badge.draft {
  background: #e0f2fe;
  color: #075985;
}

.status-badge.sent {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.signed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.paid {
  background: #d1fae5;
  color: #065f46;
}

.warning {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 8px 10px;
}

.install-banner {
  margin-bottom: 12px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  padding: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.resume-banner {
  background: #102942;
  border-color: #2b4d70;
}

.autosave-status {
  min-height: 20px;
  margin: 6px 0 4px;
  font-size: .92rem;
}

.ladder-home {
  text-align: center;
}

.app-home-buy-row {
  margin: 10px 0 12px 0;
  justify-content: center;
}

.app-home-credits-msg {
  min-height: 20px;
}

.fake-credit-card {
  max-width: 540px;
  margin: 0 auto;
}

.fake-credit-actions {
  margin-top: 12px;
}

.fake-credit-msg {
  margin-top: 10px;
}

.ladder-cta {
  width: 100%;
  min-height: 84px;
  font-size: 1.45rem;
}

.ladder-new h1 {
  margin-bottom: 8px;
}

.ladder-new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ladder-new-title {
  margin: 0;
}

.ladder-new-card {
  padding-bottom: 98px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: #ffffff;
  padding: 0;
  line-height: 1;
  flex: 0 0 40px;
}

.header-icon img {
  display: block;
  filter: brightness(1) invert(1);
}

.ladder-zone {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 22px;
}

.ladder-zone h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-pill {
  border: 1px solid #2e4e71;
  background: #173755;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
  font-weight: 700;
  touch-action: pan-y;
}

.quick-pill.active {
  border-color: #f36400;
  background: #f36400;
  color: #ffffff;
}

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

.count-badge {
  border: 1px solid #2e4e71;
  background: #0f243b;
  color: #e5e7eb;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 800;
  padding: 6px 10px;
}

.mic-big {
  width: 100%;
  min-height: 74px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  margin: 6px 0 10px;
  touch-action: pan-y;
}

.mic-big.listening {
  border-color: var(--brand-orange);
  background: #1f3c5a;
  color: #ffffff;
}

.voice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.voice-status {
  min-height: 16px;
  font-size: 0.78rem;
  color: #9fb2c7;
  flex: 1;
}

.voice-btn {
  border: 1px solid rgba(255,255,255,0.2);
  background: #132b45;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  touch-action: manipulation;
}

.voice-btn.listening {
  border-color: var(--brand-orange);
  color: #ffffff;
}

.ladder-textarea {
  font-size: 1.05rem;
  line-height: 1.45;
  resize: none;
  overflow-y: hidden;
}

.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 14px 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10,31,51,1), rgba(10,31,51,0.86), rgba(10,31,51,0));
  border-top: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
}

.bottom-cta {
  width: 100%;
  min-height: 66px;
  padding: 24px;
  font-size: 1.12rem;
  pointer-events: auto;
  touch-action: manipulation;
}

.photos-input {
  display: none;
}

.photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 2px;
  margin-bottom: 10px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: .98rem;
  cursor: pointer;
  touch-action: pan-y;
}

.ladder-total {
  font-size: 2rem;
}

.preview-breakdown {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.preview-breakdown summary {
  cursor: pointer;
  font-weight: 700;
}

.preview-document {
  background: #0f172a;
  border: 1px solid #243248;
  border-radius: 0;
  padding: 24px 14px;
  box-shadow: none;
  color: #e5e7eb;
}

.preview-document .muted {
  color: #9ca3af;
}

.preview-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
}

.doc-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.doc-divider {
  border: 0;
  border-top: 1px solid #334155;
  margin: 20px 0 0;
}

.doc-meta {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.doc-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.doc-meta p span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.doc-meta p .meta-value {
  color: #f8fafc;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}

.doc-meta p .meta-status {
  color: #94a3b8;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.preview-total-value {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 0;
}

.doc-section {
  margin-top: 24px;
}

.doc-heading {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.doc-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: #f1f5f9;
}

.cost-rows {
  display: grid;
  gap: 8px;
}

.cost-row {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.preview-document .cost-item {
  text-align: left;
  flex: 1;
  color: #f1f5f9;
  line-height: 1.45;
}

.preview-document .cost-amount {
  text-align: right;
  min-width: 88px;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.preview-photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.preview-photo-strip a {
  display: block;
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
  overflow: hidden;
}

.preview-photo-trigger {
  display: block;
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.preview-photo-strip img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 1px solid #334155;
  border-radius: 0;
  cursor: zoom-in;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-lightbox.is-hidden {
  display: none;
}

.photo-lightbox-image {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.doc-divider-strong {
  margin-top: 40px;
  margin-bottom: 12px;
}

.doc-total {
  margin-top: 0;
  text-align: center;
}

.doc-total .doc-heading {
  margin-bottom: 14px;
}

.doc-footnote {
  margin: 32px 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.preview-document .photo-grid {
  margin: 0;
  gap: 10px;
}

.preview-document .photo-grid img {
  height: 112px;
  border-radius: 0;
  border: 1px solid #334155;
}

.signed-summary {
  margin-top: 32px;
}

.signed-summary p {
  margin: 0 0 8px;
  color: #e2e8f0;
}

.signed-summary p:last-child {
  margin-bottom: 0;
}

.preview-note {
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.preview-customer-email-block {
  margin-top: 10px;
}

.preview-edit-actions {
  margin-top: 8px;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.confirm-backdrop.is-hidden {
  display: none;
}

.confirm-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.confirm-modal h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.confirm-modal p {
  margin: 0;
  color: #475569;
}

.confirm-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.preview-document .warning {
  margin-top: 24px;
  color: #e5e7eb;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 0;
}

.preview-document .step {
  border-top: 1px solid #334155;
  margin-top: 24px;
  padding-top: 24px;
}

.sign-page {
  overscroll-behavior-y: none;
  font-family: Segoe UI, Arial, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #111827;
}

.sign-page .wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
}

.sign-page .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.sign-page h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.sign-page .muted {
  color: #6b7280;
}

.sign-page .meta {
  margin: 0;
  color: #6b7280;
}

.sign-page .spacer {
  height: 22px;
}

.sign-page .total-label {
  margin: 0;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.sign-page .total-amount {
  margin: 8px 0 0;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.sign-page .section-title {
  margin: 0 0 8px;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.sign-page .section-body {
  margin: 0;
  line-height: 1.45;
}

.sign-page .cost-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sign-page .cost-list li {
  margin: 0 0 6px;
}

.sign-page .cost-item {
  color: #334155;
  font-weight: 500;
}

.sign-page .cost-amount {
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sign-page .photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.sign-page .photo-strip a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
}

.sign-page .photo-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
}

.sign-page input,
.sign-page button,
.sign-page canvas {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
}

.sign-page input {
  border: 1px solid #d1d5db;
  padding: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}

.sign-page button {
  border: 0;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  background: #16a34a;
  color: #fff;
}

.sign-page button:disabled {
  opacity: .6;
}

.sign-page canvas {
  border: 1px solid #d1d5db;
  height: 180px;
  touch-action: none;
  background: #fff;
  display: block;
  width: 100%;
}

.sign-page .msg {
  margin-top: 8px;
  color: #374151;
}

.sign-page .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.sign-page .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.sign-page .consent-row label {
  margin: 0;
  font-size: .93rem;
  line-height: 1.35;
  color: #374151;
}

.sign-clear-btn {
  margin-top: 8px;
  background: #374151;
}

.sign-approve-btn {
  margin-top: 10px;
}

.account-security-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 10px;
}

.account-security-panel-title {
  margin-top: 0;
}

.account-security-form {
  display: flex;
  justify-content: center;
}

.settings-buy-row {
  margin-bottom: 14px;
  justify-content: center;
}

.settings-credits-msg {
  min-height: 20px;
}

.settings-history-section {
  margin-bottom: 14px;
}

.settings-history-title {
  margin: 0 0 6px 0;
}

.settings-history-box {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px;
  background: #0f172a;
}

.settings-logo-status {
  min-height: 20px;
}

.settings-logo-preview {
  max-width: 140px;
  max-height: 56px;
  margin: 0 0 10px 0;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.settings-remove-logo-btn {
  width: 100%;
  margin-bottom: 10px;
}

.photo-lock-msg {
  margin-bottom: 10px;
}

.history-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #1e293b;
}

.history-left {
  min-width: 0;
}

.history-right {
  text-align: right;
  white-space: nowrap;
}

.history-primary {
  color: #e2e8f0;
  font-size: 12px;
}

.history-secondary {
  color: #94a3b8;
  font-size: 11px;
}

.history-positive {
  color: #22c55e;
  font-size: 12px;
}

.history-negative {
  color: #f87171;
  font-size: 12px;
}

.history-link {
  color: #e2e8f0;
  font-size: 12px;
  text-decoration: underline;
}

.pdf-viewer-page {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  overflow: hidden;
}

.pdf-viewer-page .pdf-wrap {
  position: fixed;
  inset: 0;
}

.pdf-viewer-page .pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f172a;
}

.pdf-viewer-page .pdf-fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  color: #e5e7eb;
  background: #0f172a;
  z-index: 12;
}

.pdf-viewer-page .pdf-back-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px;
  z-index: 20;
  border: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 180ms ease;
}

.pdf-viewer-page .pdf-back-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.pdf-viewer-page .pdf-wake-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: min(40vh, 280px);
  z-index: 10;
  background: transparent;
}

.client-approval-step label,
.client-approval-step .muted {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.5;
}

.client-approval-step .doc-heading {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px;
}

.send-sign-btn {
  min-height: 64px;
  width: 100%;
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  gap: 2px;
}

.send-sign-btn-main {
  display: block;
}

.send-sign-btn-sub {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
}

.legal-card h1 {
  margin-top: 0;
}

.legal-card h2 {
  margin-top: 20px;
  font-size: 1.1rem;
}

.support-contact-shell {
  min-height: clamp(360px, calc(100vh - 220px), 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px 40px;
}

.support-contact-card {
  width: min(760px, 100%);
  margin: 0;
}

.hero {
  background: linear-gradient(145deg, #0b1220, #0f172a);
  color: #f8fafc;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.12;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.02rem;
}

.mk-subline {
  margin-top: 12px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.phone-mock {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #334155;
  background: #0b1220;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.phone-block {
  border-radius: 10px;
  min-height: 64px;
  padding: 14px;
  background: #e5e7eb;
  color: #334155;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.phone-total {
  min-height: 56px;
}

.phone-send-btn {
  width: 100%;
  min-height: 62px;
}

.mk-section {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.mk-section h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.mk-card-grid {
  display: grid;
  gap: 10px;
}

.mk-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
}

.mk-note {
  margin-top: 12px;
  font-size: 1.02rem;
}

.mk-steps {
  margin: 0;
  padding-left: 22px;
}

.mk-steps li {
  margin: 8px 0;
  font-weight: 600;
}

.mk-note-sm {
  margin-top: 12px;
  color: #475569;
}

.mk-feature-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mk-feature-list li {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.mk-feature-list span {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.mk-feature-list em {
  font-style: normal;
  color: #334155;
}

.mk-image-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mk-image-row img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.mk-who-list {
  margin: 0;
  padding-left: 18px;
}

.mk-who-list li {
  margin: 8px 0;
  font-weight: 600;
}

.mk-testimonial blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.mk-testimonial p {
  margin-top: 8px;
  color: #475569;
}

.mk-final-cta {
  text-align: center;
}

.mk-final-cta .btn-orange {
  width: 100%;
}

body.app-authenticated {
  background: #0a1f33;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.app-authenticated .app-header {
  background: #0a1f33;
  color: #ffffff;
  font-size: 1.6rem;
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.app-authenticated .brand {
  color: #ffffff;
  font-size: 1.4rem;
}

body.app-authenticated .logo {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
}

body.app-authenticated .header-actions {
  display: none;
}

body.app-authenticated .page-container {
  flex: 1;
  width: 100%;
  padding-top: 20px;
}

body.app-authenticated main {
  flex: 1;
}

body.app-authenticated .app-content-card {
  background: #132b45;
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  padding: 28px;
}

body.app-authenticated .card {
  background: #132b45;
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

body.app-authenticated .app-content-card > .card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

body.app-authenticated h2 {
  font-size: 1.6rem;
  margin-top: 24px;
}

body.app-authenticated .muted,
body.app-authenticated .list-title,
body.app-authenticated .nav-link {
  color: #d1d5db;
}

body.app-authenticated .list li,
body.app-authenticated .ladder-zone,
body.app-authenticated .footer {
  border-color: #1f3c5a;
}

body.app-authenticated .input,
body.app-authenticated textarea,
body.app-authenticated input[type="tel"],
body.app-authenticated input[type="text"],
body.app-authenticated input[type="file"] {
  background: #0f243b;
  color: #ffffff;
  border-color: #2a4a68;
}

body.app-authenticated .btn-ghost {
  background: #0f243b;
  border-color: #2a4a68;
  color: #d1d5db;
}

body.app-authenticated .footer {
  background: #0a1f33;
  color: #9ca3af;
  padding: 24px;
  font-size: 0.85rem;
  text-align: center;
  margin-top: auto;
}

body.app-authenticated .footer a {
  color: #9ca3af;
}

body.app-authenticated .resume-banner {
  background: #102942;
  border-color: #2b4d70;
}

.marketing-body {
  background: #f9fafb;
  color: #111827;
  min-height: 100vh;
  overflow-x: hidden;
}

.marketing-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding-left: 8px;
  padding-right: 8px;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-nav a {
  color: #111827;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  min-height: 36px;
}

body.marketing-body .hero {
  color: #111827;
  padding: 0;
  background: #f9fafb;
  border: 0;
  border-radius: 0;
  gap: 0;
}

.hero-shell {
  max-width: 1152px;
  padding-top: 64px;
  padding-bottom: 64px;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-grid,
.pricing-grid,
.steps-grid {
  display: grid;
  gap: 40px;
}

.hero-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-grid-strong {
  gap: 48px;
  align-items: center;
}

.hero-lede {
  max-width: 520px;
  display: grid;
  gap: 24px;
}

body.marketing-body .hero h1 {
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

body.marketing-body .hero-lede > p {
  margin: 0;
  font-size: 1.2rem;
  color: #4b5563;
}

.cta-btn {
  margin-top: 0;
  padding: 18px 36px;
  font-size: 1.2rem;
  background: #f36400;
  color: #ffffff;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.marketing-body .section-light {
  padding: 80px 0;
  background: #f9fafb;
}

body.marketing-body .section-light h2 {
  margin-top: 0;
}

.marketing-section {
  padding: 80px 0;
}

.section-title {
  margin: 0 0 28px;
  font-size: 2rem;
  line-height: 1.2;
  color: #111827;
}

.hero-visual {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}

.hero-transform-wrap {
  width: min(100%, 420px);
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.hero-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-transform-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  padding: 0;
  overflow: hidden;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.hero-transform-card-inner {
  padding: 24px;
}

.hero-transform-output {
  display: grid;
  gap: 20px;
}

.hero-transform-input {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #f1f5f9;
}

.hero-transform-input p {
  margin: 0;
  font-style: italic;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-transform-label {
  text-align: center;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-transform-output h3 {
  margin: 4px 0 0;
  color: #111827;
  font-size: 1.18rem;
}

.hero-transform-desc {
  margin: 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-transform-photo {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.hero-transform-photo img {
  width: 100%;
  display: block;
  height: auto;
}

.hero-transform-costs {
  margin-top: 0;
  border-top: 1px solid #d1d5db;
  padding-top: 16px;
  color: #1f2937;
  font-size: 0.9rem;
  background: #fcfcfd;
  border-radius: 8px;
  padding: 16px 12px 12px;
}

.hero-transform-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.hero-transform-row + .hero-transform-row {
  margin-top: 8px;
}

.hero-transform-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
}

.hero-transform-signed {
  margin-top: 0;
  color: #15803d;
  font-weight: 800;
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  border-radius: 999px;
}

.hero-carousel-nav {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-carousel-btn {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.hero-carousel-btn:hover {
  color: #374151;
}

.hero-carousel-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  width: 20px;
  background: #f36400;
}

.phone-mock-light {
  width: min(100%, 340px);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.phone-bar {
  width: 36%;
  height: 7px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #e5e7eb;
}

.phone-card {
  height: 70px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

.phone-cta {
  height: 46px;
  border-radius: 12px;
  background: #f36400;
}

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

.problem-grid > div {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  font-weight: 600;
}

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

.step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #111827;
}

.step-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.signature-demo {
  text-align: center;
  padding-top: 6px;
}

.signature-box {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
}

.signature-svg {
  width: 100%;
  height: 90px;
}

.signature-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: signAnimation 1.6s ease forwards;
}

@keyframes signAnimation {
  to {
    stroke-dashoffset: 0;
  }
}

.signed-label {
  opacity: 0;
  font-weight: 600;
  color: #16a34a;
  margin-top: 12px;
  transition: opacity 0.4s ease;
  font-size: 1rem;
}

.signature-box.signed .signed-label {
  opacity: 1;
}

.step-card .signature-payoff {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.why-section {
  padding: 80px 0;
}

.why-list {
  margin: 0 auto;
  padding-left: 24px;
  color: #374151;
  display: inline-block;
  text-align: left;
}

.why-list li + li {
  margin-top: 12px;
}

.pricing-section {
  padding: 80px 0;
}

.pricing-shell {
  max-width: 1024px;
  padding-left: 20px;
  padding-right: 20px;
}

.pricing-lede {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.pricing-lede h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
}

.pricing-lede p {
  margin: 16px 0 0;
  font-size: 1.1rem;
  color: #4b5563;
}

.pricing-cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  padding: 32px;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.pricing-subtitle {
  margin: 8px 0 0;
  color: #4b5563;
}

.pricing-save {
  margin: 8px 0 0;
  color: #15803d;
  font-weight: 600;
}

.price {
  margin-top: 10px;
  font-size: 2.35rem;
  font-weight: 800;
  color: #111827;
}

.pricing-footnote {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: #6b7280;
}

.testimonial {
  padding: 80px 0;
  text-align: center;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #111827;
}

.testimonial cite {
  display: block;
  margin-top: 14px;
  color: #6b7280;
  font-style: normal;
}

.center {
  text-align: center;
}

.language-select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 36px;
  background: #ffffff;
  color: #111827;
}

.marketing-footer {
  padding: 40px 0;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

.marketing-footer .footer-links {
  margin-top: 0;
  margin-bottom: 14px;
}

.marketing-footer .footer-links a {
  color: #4b5563;
}

.back-link {
  display: inline-block;
  margin: 24px 24px 0;
  color: #6b7280;
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: #111827;
}

.brand-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 32px 0 16px;
  font-weight: 700;
  color: #111827;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.login-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  color: #111827;
  width: calc(100% - 48px);
  margin: 0 auto 24px;
  border: 1px solid #e5e7eb;
}

.login-card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
}

.login-card p {
  margin-bottom: 20px;
  color: #4b5563;
  font-size: 1rem;
}

.login-card label {
  display: inline-block;
  margin-bottom: 6px;
  color: #1f2937;
}

.login-input {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  margin-bottom: 20px;
  background: #ffffff;
}

.send-code-btn {
  background: #f36400;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  border: none;
}

.otp-wrap {
  margin-top: 14px;
}

.login-msg {
  min-height: 24px;
  margin-top: 14px;
  margin-bottom: 0;
  color: #6b7280;
}

@media (max-height: 720px) {
  .login-wrapper {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-lede {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 14px 10px;
  }

  .marketing-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 12px;
  }

  .hero-grid,
  .problem-grid,
  .steps-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .steps-grid {
    gap: 16px;
  }

  body.marketing-body .hero-lede > p {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .hero-lede .cta-btn {
    width: 100%;
    max-width: 360px;
    min-height: 58px;
    font-size: 1.1rem;
    padding: 14px 20px;
  }

  .hero-carousel-nav {
    width: 100%;
    justify-content: center;
  }

  .hero-transform-wrap,
  .hero-transform-card {
    max-width: 360px;
  }
}

@media (min-width: 640px) {
  .hero-shell {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .pricing-shell {
    padding-left: 32px;
    padding-right: 32px;
  }

  body.marketing-body .hero h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-visual {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-transform-wrap,
  .hero-transform-card {
    max-width: 420px;
  }

  .hero-transform-card-inner {
    padding: 32px;
  }

  .hero-transform-output {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-shell {
    padding-left: 48px;
    padding-right: 48px;
  }

  .pricing-shell {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero-grid-strong {
    gap: 64px;
  }

  body.marketing-body .hero h1 {
    font-size: 3.3rem;
  }
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 49;
}

.sheet-backdrop.is-hidden {
  pointer-events: none;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #132b45;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 50;
  pointer-events: none;
  touch-action: pan-y;
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.bottom-sheet.open {
  transform: translateY(0);
  pointer-events: auto;
}

.sheet-handle {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.35);
}

.sheet-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.sheet-credits {
  margin: 10px 0 18px;
  color: #d1d5db;
}

.bottom-sheet [data-logout] {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

body.terms-gate-open {
  overflow: hidden;
}

.terms-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.terms-gate-backdrop.is-hidden {
  display: none;
}

.terms-gate-modal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.terms-gate-modal h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.terms-gate-modal p {
  margin: 0 0 12px;
  color: #334155;
}

.terms-gate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
}

.terms-gate-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 14px;
  font-weight: 500;
  color: #0f172a;
}

.terms-gate-check input {
  margin-top: 3px;
}

.terms-gate-modal .btn-primary {
  margin-top: 2px;
}

.terms-gate-modal .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.terms-gate-message {
  min-height: 20px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #b91c1c !important;
}

@media (min-width: 900px) {
  .mk-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.admin-nav {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 8px;
  height: fit-content;
}

.admin-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.admin-nav-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 16px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-subtle {
  color: #64748b;
  font-size: 12px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.06);
  background: #ffffff;
}

.admin-card-label {
  color: #64748b;
  font-size: 12px;
}

.admin-card-value {
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
  margin-top: 5px;
}

.admin-block {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.admin-chart {
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.admin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}

.admin-legend-item i {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.admin-inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.admin-inline-control select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 8px;
}

.admin-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-cards {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}
