:root {
  --navy: #0b2545;
  --gold: #e0a458;
  --green: #1f6f50;
  --warning: #8a5a1c;
  --warning-dark: #6b4a1c;
  --bg: #f7f5f0;
  --surface: #f1eee6;
  --text: #101820;
  --body: #3a4757;
  --muted: #8a93a1;
  --line: rgba(11, 37, 69, 0.1);
  --shadow: 0 30px 60px -20px rgba(11, 37, 69, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 56px;
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: "Newsreader", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--navy);
  color: var(--gold);
  font-size: 18px;
}

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

.site-nav a {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0.85;
  text-decoration: none;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.header-cta {
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  font-size: 14.5px;
}

.container {
  width: min(100% - 112px, 1320px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid rgba(224, 164, 88, 0.4);
  border-radius: 99px;
  background: rgba(224, 164, 88, 0.16);
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: "Newsreader", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 22px;
  font-size: 54px;
  line-height: 1.08;
}

.hero-copy {
  max-width: 520px;
  margin: 0 0 36px;
  color: var(--body);
  font-size: 18.5px;
  line-height: 1.6;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 16px 26px;
}

.btn-secondary {
  border: 1.5px solid rgba(11, 37, 69, 0.25);
  background: #fff;
  color: var(--navy);
  padding: 16px 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
}

.document-stage {
  position: relative;
}

.document-card {
  padding: 28px;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.doc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.doc-paper {
  border-radius: 12px;
  background: var(--bg);
  padding: 26px 24px;
}

.doc-line {
  height: 11px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: rgba(11, 37, 69, 0.12);
}

.doc-line.strong {
  background: rgba(11, 37, 69, 0.18);
}

.signature-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.signature {
  flex: 1;
  border-top: 1.5px dashed rgba(11, 37, 69, 0.35);
  padding-top: 8px;
  color: var(--body);
  font-size: 11px;
  font-weight: 700;
}

.floating-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -10px rgba(11, 37, 69, 0.25);
}

.check-badge {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.section {
  padding: 90px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-kicker {
  color: var(--warning);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-header h2,
.dark-section h2 {
  margin: 10px 0 14px;
  font-size: 36px;
}

.section-header p,
.dark-section p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card,
.legal-card,
.pricing-card,
.form-card,
.review-card {
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 14px;
  background: #fff;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: rgba(11, 37, 69, 0.16);
  box-shadow: 0 16px 30px -16px rgba(11, 37, 69, 0.25);
  transform: translateY(-2px);
}

.icon-tile {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  font-family: "Newsreader", serif;
  font-size: 18px;
  font-weight: 600;
}

.category-card strong {
  color: var(--navy);
  font-size: 15.5px;
}

.category-card span:last-child,
.legal-card p {
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
}

.dark-section {
  background: var(--navy);
  padding: 96px 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.dark-section h2 {
  color: #fff;
}

.dark-section p {
  color: rgba(255, 255, 255, 0.72);
}

.segmented {
  display: flex;
  gap: 10px;
  margin: 30px 0;
}

.segmented button {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.segmented button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.number-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.number-list div {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
}

.number-list span:first-child {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 99px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
}

.mockup {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}

.mockup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
}

.mini-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
}

.bubble-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 86%;
  border-radius: 12px 12px 12px 4px;
  background: var(--surface);
  color: var(--navy);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.user {
  align-self: flex-end;
  max-width: 78%;
  border-radius: 12px 12px 4px 12px;
  background: var(--navy);
  color: #fff;
}

.bubble.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
  width: fit-content;
}

.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-fake {
  margin-top: 6px;
  border: 1px solid rgba(11, 37, 69, 0.15);
  border-radius: 99px;
  background: var(--bg);
  color: var(--muted);
  padding: 11px 16px;
  font-size: 13.5px;
}

.field-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-preview label,
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--body);
  font-size: 12.5px;
  font-weight: 700;
}

.fake-input,
.field input,
.field select,
.field textarea,
.chat-composer input {
  width: 100%;
  border: 1.5px solid rgba(11, 37, 69, 0.15);
  border-radius: 9px;
  background: var(--bg);
  color: var(--navy);
  padding: 12px 14px;
  font-size: 14.5px;
}

.legal-card {
  padding: 28px 24px;
}

.legal-card .num {
  margin-bottom: 6px;
  color: rgba(11, 37, 69, 0.14);
  font-family: "Newsreader", serif;
  font-size: 34px;
  font-weight: 600;
}

.legal-card h3 {
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.callout {
  margin-top: 20px;
  border: 1px solid rgba(224, 164, 88, 0.35);
  border-radius: 12px;
  background: rgba(224, 164, 88, 0.12);
  color: var(--warning-dark);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 18px 22px;
}

.pricing-section {
  background: var(--surface);
  padding: 96px 0;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.pill {
  display: flex;
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-radius: 99px;
  background: #fff;
  padding: 5px;
}

.pill button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 22px;
}

.pill button.active {
  background: var(--navy);
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.pricing-card {
  border-width: 1.5px;
  padding: 32px 28px;
}

.pricing-card.featured {
  border-color: var(--gold);
}

.pricing-card h3 {
  margin: 0 0 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.tagline,
.includes {
  color: var(--body);
  font-size: 13.5px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 20px;
}

.price strong {
  color: var(--navy);
  font-family: "Newsreader", serif;
  font-size: 38px;
  font-weight: 600;
}

.price span {
  color: var(--muted);
  font-size: 13.5px;
}

.pricing-card .btn {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
}

.site-footer {
  background: var(--navy);
  padding: 56px 0 36px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--navy);
  font-size: 15px;
}

.footer-brand p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  text-decoration: none;
}

.copyright {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
}

.app-shell {
  min-height: calc(100vh - 71px);
}

.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 56px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  background: rgba(247, 245, 240, 0.95);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 580px;
  gap: 48px;
  align-items: start;
  width: min(100% - 48px, 1360px);
  margin: 0 auto;
  padding: 48px 0 100px;
}

.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 44px;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-item:last-child {
  flex: 0 0 auto;
}

.step-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.step-circle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(11, 37, 69, 0.2);
  border-radius: 99px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.step-control.active .step-circle {
  border-color: transparent;
  background: var(--navy);
  color: #fff;
}

.step-control.done .step-circle {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.step-control span:last-child {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.step-control.active {
  color: var(--navy);
}

.step-control.done {
  color: var(--green);
}

.step-line {
  flex: 1;
  height: 2px;
  margin: 0 8px 22px;
  background: rgba(11, 37, 69, 0.12);
}

.step-line.done {
  background: var(--green);
}

.form-card {
  border-radius: 16px;
  padding: 36px;
}

.form-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.form-card > p {
  margin: 0 0 28px;
  color: var(--body);
  font-size: 14.5px;
}

.group-title {
  margin: 0 0 14px;
  color: var(--warning);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 20px;
}

.field-grid .field {
  margin-bottom: 0;
}

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

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.review-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card {
  padding: 18px 20px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-head strong {
  color: var(--navy);
  font-size: 14px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--warning);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  padding: 0;
}

.review-card p {
  margin: 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.7;
}

.preview-wrap {
  position: sticky;
  top: 96px;
}

.preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d94a4a;
  box-shadow: 0 0 0 4px rgba(217, 74, 74, 0.15);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(217, 74, 74, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(217, 74, 74, 0.05); }
}

.preview-paper {
  position: relative;
  min-height: 750px;
  max-height: 82vh;
  overflow-y: auto;
  background: #fdfcf8;
  color: #1c1c1e;
  font-family: "Newsreader", "Times New Roman", Georgia, serif;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 76px 68px 90px;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 8px 18px -4px rgba(0, 0, 0, 0.14),
    0 30px 60px -12px rgba(0, 0, 0, 0.22);
}

.preview-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent);
  pointer-events: none;
}

.preview-paper::-webkit-scrollbar {
  width: 8px;
}

.preview-paper::-webkit-scrollbar-track {
  background: transparent;
}

.preview-paper::-webkit-scrollbar-thumb {
  background: rgba(11, 37, 69, 0.18);
  border-radius: 4px;
}

.preview-title {
  margin: 0 auto 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0b2545;
  text-transform: uppercase;
}

.preview-paper p {
  margin: 0 0 13px;
  text-align: justify;
  hyphens: auto;
  color: #1c1c1e;
}

.preview-paper p.center {
  text-align: center;
  font-weight: 700;
  margin: 22px 0;
  letter-spacing: 0.03em;
  color: #0b2545;
}

.preview-paper strong {
  font-weight: 700;
  color: #0b2545;
}

.preview-paper .signature-row {
  margin-top: 56px;
  padding-top: 20px;
  gap: 32px;
}

.preview-paper .signature {
  border-top: 1.2px solid rgba(0, 0, 0, 0.6);
  padding-top: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #333;
  text-align: center;
  letter-spacing: 0.02em;
}

.success {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.success .check-badge {
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  font-size: 30px;
}

.success h1 {
  margin: 0 0 14px;
  font-size: 32px;
}

.success p {
  margin: 0 0 36px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 580px;
  gap: 40px;
  width: min(100% - 48px, 1360px);
  margin: 0 auto;
  padding: 48px 0 90px;
}

.chat-panel {
  overflow: hidden;
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 48px -32px rgba(11, 37, 69, 0.45);
}

.chat-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
}

.chat-messages {
  display: flex;
  min-height: 520px;
  max-height: 580px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 22px;
  background: linear-gradient(#fff, #fff 75%, rgba(241, 238, 230, 0.45));
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.quick-options button {
  border: 1px solid rgba(11, 37, 69, 0.16);
  border-radius: 99px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid rgba(11, 37, 69, 0.08);
  padding: 16px;
}

.chat-side {
  position: sticky;
  top: 96px;
  align-self: start;
}

.mini-summary {
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
}

.mini-summary h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.mini-summary dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.mini-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-summary dd {
  margin: 2px 0 0;
  color: var(--body);
  font-size: 13.5px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .form-layout,
  .chat-layout {
    grid-template-columns: 1fr;
    width: min(100% - 48px, 780px);
  }

  .preview-wrap,
  .chat-side {
    position: static;
  }

  .preview-paper {
    min-height: auto;
    max-height: 640px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 24px;
  }

  .site-nav {
    display: none;
  }

  .container {
    width: min(100% - 48px, 1320px);
  }

  .hero,
  .flow-grid,
  .form-layout,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .card-grid,
  .pricing-grid,
  .pricing-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-wrap,
  .chat-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 14px 18px;
  }

  .brand {
    font-size: 19px;
  }

  .header-cta {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .container,
  .form-layout,
  .chat-layout {
    width: min(100% - 32px, 1320px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .card-grid,
  .pricing-grid,
  .pricing-grid.two,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .dark-section,
  .pricing-section {
    padding: 64px 0;
  }

  .form-card {
    padding: 26px 20px;
  }

  .stepper {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .step-line {
    min-width: 28px;
  }

  .floating-badge {
    left: 12px;
  }

  .form-topline {
    padding: 14px 18px;
  }
}

/* Modal selector de categoría */
.picker-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 37, 69, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: modal-fade 0.18s ease-out;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.picker-modal-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 18px;
  padding: 40px 40px 36px;
  box-shadow: 0 40px 80px -20px rgba(11, 37, 69, 0.5);
  animation: modal-pop 0.22s ease-out;
}

@keyframes modal-pop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.picker-modal h2 {
  margin: 0 0 6px;
  font-family: "Newsreader", serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.picker-modal p {
  margin: 0 0 24px;
  color: var(--body);
  font-size: 14.5px;
}

.picker-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.06);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.picker-modal-close:hover {
  background: rgba(11, 37, 69, 0.12);
}

.picker-modal .card-grid {
  gap: 16px;
}

/* Gate de pago — planes y redención */
.gate-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 12px;
}

@media (max-width: 640px) {
  .gate-plans {
    grid-template-columns: 1fr;
  }
}

.gate-plan {
  padding: 18px 16px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-plan.featured {
  border-color: var(--gold);
  background: rgba(224, 164, 88, 0.08);
  box-shadow: 0 10px 30px -12px rgba(11, 37, 69, 0.25);
}

.gate-plan-name {
  font-family: "Newsreader", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.gate-plan-tagline {
  font-size: 12.5px;
  color: var(--body);
}

.gate-plan-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 10px;
}

.gate-plan .btn {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}

.gate-redeem {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--body);
}
