/* -------------------------------------------------------------------------
   Landing page (index only)
   ------------------------------------------------------------------------- */

.landing {
  --landing-accent: #ffd460;
  --landing-accent-dim: rgba(255, 212, 96, 0.14);
  --landing-accent-glow: rgba(255, 212, 96, 0.22);
  --landing-border: rgba(255, 255, 255, 0.08);
  --landing-panel: rgba(255, 255, 255, 0.03);
  --landing-panel-strong: rgba(255, 255, 255, 0.045);
  --landing-form-bg: rgba(0, 0, 0, 0.22);

  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 212, 96, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(13, 110, 253, 0.06), transparent 50%),
    var(--bs-body-bg);
}

/* Subtle tech grid */
.landing-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.landing-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 6rem; /* clear fixed footer */
}

/* Hero */
.landing-hero {
  margin-bottom: 1rem;
}

.landing-logo {
  max-width: min(300px, 72vw);
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 28px var(--landing-accent-glow));
}

.landing-tagline {
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--landing-accent);
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.35rem;
  margin: 0.15rem 0 1.5rem;
  padding: 0.9rem 1rem;
  list-style: none;
  text-align: left;
  background: var(--landing-panel);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
}

.landing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.2rem 0.1rem;
}

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  color: var(--landing-accent);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.9;
}

.landing-feature-body {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-feature-body strong {
  color: var(--bs-body-color);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--bs-body-color);
  background: var(--landing-panel-strong);
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.landing-chip .bi {
  color: var(--landing-accent);
  font-size: 0.9em;
}

/* Chat composer sits flush in the content column (no panel chrome) */
.landing-chat {
  margin-bottom: 1.5rem;
}

.landing-chat-folder {
  position: relative;
}

.landing-chat-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  padding-left: 0.85rem;
  position: relative;
  z-index: 2;
}

.landing-chat-panel[hidden] {
  display: none !important;
}

.landing-chat-tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  position: relative;
  z-index: 1;
  margin: 0 0 -1px;
  padding: 0.28rem 0.95rem 0.32rem;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid var(--landing-border);
  border-radius: 0.55rem 0.7rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.12s ease, background 0.12s ease, border-color 0.15s ease;
  user-select: none;
}

.landing-chat-tab:hover,
.landing-chat-tab:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.2);
  outline: none;
}

.landing-chat-tab:focus-visible {
  box-shadow: 0 0 0 0.15rem var(--landing-accent-dim);
}

.landing-chat-tab.is-active {
  z-index: 3;
  background: var(--landing-form-bg, rgba(0, 0, 0, 0.22));
  color: var(--landing-accent);
  border-bottom-color: transparent;
  cursor: default;
}

.landing-chat-tab.is-active:hover,
.landing-chat-tab.is-active:focus-visible {
  color: var(--landing-accent);
  background: var(--landing-form-bg, rgba(0, 0, 0, 0.22));
}

.landing-chat-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--landing-form-bg, rgba(0, 0, 0, 0.22));
}

.landing-chat-folder:focus-within .landing-chat-tab.is-active {
  border-color: rgba(255, 212, 96, 0.35);
  border-bottom-color: transparent;
}

.landing-chat-folder .landing-form-shell {
  border-top-left-radius: 0.55rem;
}

/* Panels */
.landing-panel {
  background: var(--landing-panel);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.landing-panel-primary {
  box-shadow:
    0 0 0 1px rgba(255, 212, 96, 0.06),
    0 18px 50px -24px rgba(0, 0, 0, 0.65);
}

.landing-panel-secondary {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-panel-header {
  margin-bottom: 1rem;
}

.landing-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.45rem;
}

.landing-panel-label-accent {
  color: var(--landing-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: var(--landing-accent-dim);
  border: 1px solid rgba(255, 212, 96, 0.22);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  margin-bottom: 0;
}

.landing-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 8px var(--landing-accent);
  display: inline-block;
}

.landing-panel-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-panel-hint {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

/* Form shell */
.landing-form-shell {
  background: var(--landing-form-bg, rgba(0, 0, 0, 0.22));
  border: 1px solid var(--landing-border);
  border-radius: 0.95rem;
  padding: 0.75rem 0.85rem 0.7rem;
  min-height: 3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255, 212, 96, 0.04),
    0 14px 40px -24px rgba(0, 0, 0, 0.7);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.landing-form-shell:focus-within {
  border-color: rgba(255, 212, 96, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 212, 96, 0.08),
    0 0 0 0.2rem var(--landing-accent-dim),
    0 14px 40px -24px rgba(0, 0, 0, 0.7);
}

/* Existing-chat composer (mirrors new-chat shell / toolbar) */
.landing-resume-composer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.landing-resume-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.35rem 0.35rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--bs-body-color);
  font-size: 0.98rem;
  line-height: 1.5;
}

.landing-resume-input::placeholder {
  color: var(--bs-secondary-color);
  opacity: 0.85;
}

.landing-resume-input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--bs-body-color);
  outline: none;
}

.landing-resume-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.landing-resume-hint {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--bs-secondary-color);
}

.landing-resume-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px;
  background: var(--landing-accent);
  border: 1px solid var(--landing-accent);
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 6px 16px -10px rgba(255, 212, 96, 0.55);
  transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.landing-resume-submit .bi {
  font-size: 1.05rem;
  line-height: 1;
}

.landing-resume-submit-label {
  white-space: nowrap;
}

.landing-resume-submit:hover,
.landing-resume-submit:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 0 0 0.15rem var(--landing-accent-dim), 0 8px 18px -10px rgba(255, 212, 96, 0.65);
  color: #1a1a1a;
  background: var(--landing-accent);
  border-color: var(--landing-accent);
}

.landing-resume-submit:focus-visible {
  outline: none;
}

.landing-resume-submit:active {
  transform: translateY(1px);
}

.landing-footnote {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* 404 page */
.landing-404-code {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--landing-accent);
  text-shadow: 0 0 40px var(--landing-accent-glow);
  opacity: 0.95;
  user-select: none;
}

/* Footer */
.landing-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--landing-border) !important;
  background: rgba(22, 25, 29, 0.92) !important;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.landing-footer a:hover,
.landing-footer a:focus-visible {
  color: var(--landing-accent);
  border-bottom-color: var(--landing-accent-dim);
}

.landing-footer-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.35rem;
  user-select: none;
}

/* Prompt composer — mirrors chat app */
.landing #prompt-form-container .chat-prompt-composer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.landing #prompt-form-container .chat-prompt-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.35rem 0.35rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--bs-body-color);
  font-size: 0.98rem;
  line-height: 1.5;
  resize: none;
  overflow-y: auto;
}

.landing #prompt-form-container .chat-prompt-input::placeholder {
  color: var(--bs-secondary-color);
  opacity: 0.85;
}

.landing #prompt-form-container .chat-prompt-input:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--bs-body-color);
  outline: none;
}

.landing #prompt-form-container .chat-prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.landing #prompt-form-container .chat-prompt-agent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: min(100%, 16rem);
  margin: 0;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.landing #prompt-form-container .chat-prompt-agent:hover,
.landing #prompt-form-container .chat-prompt-agent:focus-within {
  border-color: rgba(255, 212, 96, 0.4);
  background: rgba(255, 212, 96, 0.08);
  box-shadow: 0 0 0 0.12rem var(--landing-accent-dim);
}

.landing #prompt-form-container .chat-prompt-agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--landing-accent);
  font-size: 0.9rem;
  line-height: 1;
}

.landing #prompt-form-container .chat-prompt-agent-select {
  min-width: 0;
  width: auto;
  max-width: 12.5rem;
  padding: 0.2rem 1.65rem 0.2rem 0.15rem;
  background-color: transparent;
  background-position: right 0.15rem center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  line-height: 1.3;
  cursor: pointer;
}

.landing #prompt-form-container .chat-prompt-agent-select:focus {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.95);
  outline: none;
}

.landing #prompt-form-container .chat-prompt-agent-select option {
  color: var(--bs-body-color);
  background: #1c1f24;
}

.landing #prompt-form-container .chat-prompt-submit,
.landing #prompt-form-container #chat-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border-radius: 50%;
  background: var(--landing-accent);
  border: 1px solid var(--landing-accent);
  color: #1a1a1a;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 6px 16px -10px rgba(255, 212, 96, 0.55);
  transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

/* Labeled free CTA (landing only, applied after form load) */
.landing #prompt-form-container .chat-prompt-submit-labeled,
.landing #prompt-form-container #chat-submit.chat-prompt-submit-labeled {
  width: auto;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing #prompt-form-container .chat-prompt-submit-labeled .bi,
.landing #prompt-form-container #chat-submit.chat-prompt-submit-labeled .bi {
  font-size: 1.05rem;
  line-height: 1;
}

.landing #prompt-form-container .chat-prompt-submit-label {
  white-space: nowrap;
}

.landing #prompt-form-container .chat-prompt-submit:hover:not(:disabled),
.landing #prompt-form-container #chat-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 0 0 0.15rem var(--landing-accent-dim), 0 8px 18px -10px rgba(255, 212, 96, 0.65);
  color: #1a1a1a;
}

.landing #prompt-form-container .chat-prompt-submit:focus-visible,
.landing #prompt-form-container #chat-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem var(--landing-accent-dim);
}

.landing #prompt-form-container .chat-prompt-submit:active:not(:disabled),
.landing #prompt-form-container #chat-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.landing #prompt-form-container .chat-prompt-submit:disabled,
.landing #prompt-form-container #chat-submit:disabled {
  opacity: 0.5;
  box-shadow: none;
}

@media (max-width: 399.98px) {
  .landing #prompt-form-container .chat-prompt-agent {
    max-width: min(100%, 11.5rem);
  }

  .landing #prompt-form-container .chat-prompt-agent-select {
    max-width: 8.5rem;
    font-size: 0.78rem;
  }
}

/* Landing modals — mirrors panels / form shells */
.landing-modal .modal-dialog {
  max-width: 28rem;
}

.landing-modal-wide .modal-dialog {
  max-width: 36rem;
}

/* Scrollable policy modal: keep a sensible max height on tall viewports */
.landing-modal-wide .modal-dialog-scrollable {
  max-height: min(88vh, 42rem);
}

.landing-modal-content {
  background:
    linear-gradient(180deg, rgba(255, 212, 96, 0.04), transparent 40%),
    rgba(22, 25, 29, 0.96);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(255, 212, 96, 0.06),
    0 24px 60px -20px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.landing-modal-header {
  padding: 1.25rem 1.25rem 0.5rem;
  align-items: flex-start;
}

.landing-modal-header .btn-close {
  margin-top: 0.15rem;
  opacity: 0.55;
}

.landing-modal-header .btn-close:hover {
  opacity: 0.9;
}

.landing-modal-header .landing-panel-label {
  display: flex;
  margin-bottom: 0.35rem;
}

.landing-modal-body {
  padding: 0.5rem 1.25rem 0.75rem;
}

.landing-modal-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  gap: 0.5rem;
  justify-content: flex-end;
}

.landing-modal-footer .btn {
  min-width: 6.5rem;
}

/* Accent CTA (gold fill, dark text — matches prompt submit) */
.landing-btn-accent {
  background: var(--landing-accent);
  border-color: var(--landing-accent);
  color: #1a1a1a;
  font-weight: 500;
}

.landing-btn-accent:hover,
.landing-btn-accent:focus-visible {
  background: #ffe08a;
  border-color: #ffe08a;
  color: #1a1a1a;
  filter: brightness(1.02);
}

.landing-btn-accent:active {
  background: #e6bf4f;
  border-color: #e6bf4f;
  color: #1a1a1a;
}

/* Form controls inside contact modal */
.landing-modal .landing-form-shell .form-control {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--bs-body-color);
}

.landing-modal .landing-form-shell .form-control:focus {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 212, 96, 0.45);
  box-shadow: 0 0 0 0.2rem var(--landing-accent-dim);
  color: var(--bs-body-color);
}

.landing-modal .landing-form-shell .form-control.is-invalid {
  border-color: var(--bs-form-invalid-border-color);
}

.landing-modal .landing-form-shell .form-floating > label {
  color: var(--bs-secondary-color);
}

.landing-modal .landing-form-shell .form-floating > .form-control:focus ~ label,
.landing-modal .landing-form-shell .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: rgba(255, 212, 96, 0.85);
}

/* Success state */
.landing-modal-success {
  padding: 1.5rem 1rem;
}

.landing-modal-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--landing-accent-dim);
  border: 1px solid rgba(255, 212, 96, 0.35);
  color: var(--landing-accent);
  font-size: 1.25rem;
}

/* Modal backdrop softens into landing grid */
.landing-modal + .modal-backdrop,
.modal-backdrop.show {
  --bs-backdrop-opacity: 0.65;
}

/* Privacy policy content inside landing modal */
.landing-policy {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--bs-body-color);
}

.landing-policy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
}

.landing-policy-chip {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--landing-accent);
}

.landing-policy-meta-item {
  opacity: 0.9;
}

.landing-policy-intro {
  margin-bottom: 1.25rem;
}

.landing-policy-intro p {
  margin-bottom: 0.65rem;
}

.landing-policy-section {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--landing-border);
}

.landing-policy-section-last {
  padding-bottom: 0.25rem;
}

.landing-policy-heading {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
  color: var(--bs-body-color);
}

.landing-policy-num {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--landing-accent);
  opacity: 0.9;
}

.landing-policy p {
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
}

.landing-policy ul {
  margin-bottom: 0.75rem;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
}

.landing-policy li {
  margin-bottom: 0.4rem;
}

.landing-policy li::marker {
  color: rgba(255, 212, 96, 0.55);
}

.landing-policy-list {
  list-style: none;
  padding-left: 0;
}

.landing-policy-list > li {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--landing-border);
  border-radius: 0.65rem;
}

.landing-policy-list > li > strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--bs-body-color);
  font-size: 0.88rem;
}

.landing-policy-list > li > p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.landing-policy-callout {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.75rem !important;
  background: var(--landing-accent-dim);
  border: 1px solid rgba(255, 212, 96, 0.28);
  border-radius: 999px;
  color: var(--landing-accent) !important;
  font-size: 0.85rem;
}

/* Sticky header/footer separation when body scrolls */
.landing-modal-wide .modal-header {
  border-bottom: 1px solid transparent;
}

.landing-modal-wide .modal-dialog-scrollable .modal-body {
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
}

/* Responsive spacing */
@media (min-width: 768px) {
  .landing-main {
    padding-top: 3rem;
  }

  .landing-hero {
    margin-bottom: 1.35rem;
  }

  .landing-panel {
    padding: 1.5rem 1.5rem 1.6rem;
  }

  .landing-logo {
    max-width: 360px;
    margin-bottom: 1rem;
  }

  .landing-features {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem 1.75rem;
    margin-bottom: 1.75rem;
    padding: 1.15rem 1.3rem;
  }

  .landing-feature-body {
    font-size: 0.95rem;
  }

  .landing-modal-header {
    padding: 1.5rem 1.5rem 0.6rem;
  }

  .landing-modal-body {
    padding: 0.5rem 1.5rem 0.85rem;
  }

  .landing-modal-footer {
    padding: 0.85rem 1.5rem 1.5rem;
  }

  .landing-modal-wide .modal-dialog {
    max-width: 40rem;
  }
}

@media (max-width: 575.98px) {
  .landing-main {
    padding-top: 1.1rem;
  }

  .landing-hero {
    margin-bottom: 0.7rem;
  }

  .landing-logo {
    max-width: min(240px, 70vw);
    margin-bottom: 0.5rem;
  }

  .landing-tagline {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
  }

  .landing-features {
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    padding: 0.8rem 0.85rem;
  }

  .landing-feature-body {
    font-size: 0.84rem;
  }

  .landing-chat-tabs {
    padding-left: 0.65rem;
  }

  .landing-chat-tab {
    padding: 0.24rem 0.75rem 0.28rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .landing-resume-hint {
    font-size: 0.75rem;
  }

  .landing-resume-submit {
    padding: 0 0.8rem 0 0.65rem;
    font-size: 0.82rem;
  }

  .landing-chip {
    font-size: 0.75rem;
  }

  .landing #prompt-form-container .chat-prompt-submit-labeled,
  .landing #prompt-form-container #chat-submit.chat-prompt-submit-labeled {
    padding: 0 0.8rem 0 0.65rem;
    font-size: 0.82rem;
  }

  .landing-modal-footer {
    flex-direction: column-reverse;
  }

  .landing-modal-footer .btn {
    width: 100%;
  }

  /* Only stack footer buttons when there are multiple actions (contact form) */
  .landing-modal-wide .landing-modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }

  .landing-modal-wide .landing-modal-footer .btn {
    width: auto;
  }

  .landing-policy {
    font-size: 0.9rem;
  }

  .landing-policy-list > li {
    padding: 0.65rem 0.7rem;
  }
}
