/* LedgerFlow site enhancements */
:root {
  color-scheme: light;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
}

a,
button,
summary,
input,
textarea,
select {
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #41b2ff;
  outline-offset: 3px;
}

.btn:focus-visible,
.cta:focus-visible {
  outline: 3px solid #41b2ff;
  outline-offset: 4px;
}

.card,
.hero-card,
.band,
.sample-panel,
.lfd-intro-card,
.lfd-mini,
.lfd-intro-mini,
.stat,
.faq details,
.item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.hero-card:hover,
.sample-panel:hover,
.stat:hover,
.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  font: inherit;
}

textarea {
  min-height: 120px;
}

button,
.btn,
.cta {
  cursor: pointer;
}

.hero-actions .btn,
.actions .btn,
.nav .btn,
.nav .cta {
  min-height: 48px;
}

@media (max-width: 980px) {
  .nav,
  .nav-links,
  .links,
  .hero-actions,
  .actions,
  .footer-row,
  .footer-links {
    row-gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behaviour: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* MOBILE GRADE A PATCH START */
body.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-toggle,
.mobile-menu-panel {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    padding: 12px 0 !important;
    background: rgba(6, 12, 24, .94) !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
    backdrop-filter: blur(16px) !important;
  }

  .nav {
    position: relative;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .brand {
    min-height: 44px;
  }

  .brand span:last-child {
    font-size: 15px !important;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15,23,42,.18);
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus-visible {
    background: rgba(255,255,255,.12);
  }

  .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: auto !important;
  }

  .nav-links a:not(.btn):not(.cta) {
    display: none !important;
  }

  .links {
    display: none !important;
  }

  .nav .btn,
  .nav .cta,
  .nav-links .btn {
    min-height: 44px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(65,178,255,.20) !important;
  }

  .mobile-menu-panel {
    display: none;
    width: 100%;
    order: 50;
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(8,17,31,.98);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(15,23,42,.28);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav.mobile-nav-open .mobile-menu-panel {
    display: grid !important;
  }

  .mobile-menu-panel a {
    display: block;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.06);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
  }

  .mobile-menu-panel a:hover,
  .mobile-menu-panel a:focus-visible {
    background: rgba(255,255,255,.10);
  }

  .hero {
    padding: 28px 0 28px !important;
  }

  .hero-grid {
    gap: 16px !important;
  }

  .site-shell .hero-grid > div:first-child {
    background: linear-gradient(180deg, rgba(15,23,42,.97) 0%, rgba(17,28,52,.97) 100%) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 28px !important;
    padding: 22px 18px 18px !important;
    box-shadow: 0 22px 48px rgba(15,23,42,.28) !important;
  }

  .site-shell .eyebrow {
    color: #dbeafe !important;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.14) !important;
  }

  .site-shell .hero h1 {
    color: #ffffff !important;
    font-size: clamp(34px, 11vw, 48px) !important;
    line-height: 1.02 !important;
    max-width: none !important;
    margin: 14px 0 14px !important;
    text-wrap: balance;
  }

  .site-shell .hero p.lead {
    color: #dbeafe !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .site-shell .micro-note {
    color: #cbd5e1 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .hero-actions,
  .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hero-actions .btn,
  .actions .btn {
    width: 100% !important;
  }

  .site-shell .hero .btn-primary {
    box-shadow: 0 14px 34px rgba(65,178,255,.34) !important;
  }

  .site-shell .hero .btn-secondary {
    background: rgba(255,255,255,.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05) !important;
  }

  .fit-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .fit-pill {
    min-height: 74px;
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    padding: 12px 12px !important;
    line-height: 1.45 !important;
  }

  .hero-card {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cfd9ea !important;
    border-radius: 24px !important;
    padding: 20px !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.12) !important;
  }

  .hero-card .label {
    color: #334155 !important;
  }

  .hero-card .finding {
    background: #ffffff !important;
    border: 1px solid #dbe4f0 !important;
  }

  .hero-card .finding p {
    color: #334155 !important;
  }

  .section {
    padding: 56px 0 !important;
  }

  .section h2 {
    font-size: clamp(30px, 9vw, 42px) !important;
    line-height: 1.06 !important;
    text-wrap: balance;
  }

  .section-intro {
    font-size: 17px !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
  }

  .card,
  .sample-panel,
  .stat,
  .faq details,
  .item,
  .takeaway,
  .lfd-intro-card,
  .lfd-intro-mini,
  .lfd-mini {
    border-color: #d2dceb !important;
    box-shadow: 0 16px 36px rgba(15,23,42,.09) !important;
  }

  .card,
  .sample-panel,
  .stat,
  .item,
  .takeaway {
    padding: 20px !important;
  }

  .faq details {
    padding: 16px 18px !important;
  }

  .faq summary {
    line-height: 1.35 !important;
  }

  .band,
  .cta-band {
    padding: 24px 22px !important;
    border-radius: 24px !important;
  }

  .footer-row,
  .footer-links {
    row-gap: 12px !important;
  }
}

@media (max-width: 560px) {
  .fit-strip {
    grid-template-columns: 1fr !important;
  }

  .site-shell .hero h1 {
    font-size: clamp(32px, 11.5vw, 44px) !important;
  }

  .site-shell .hero p.lead {
    font-size: 17px !important;
  }

  .mobile-nav-toggle {
    padding: 10px 12px !important;
  }

  .nav .btn,
  .nav .cta,
  .nav-links .btn {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
}
/* MOBILE GRADE A PATCH END */


/* CONVERSION TRUST PATCH START */
.proof-grid .card p + .proof-list {
  margin-top: 14px;
}

.proof-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  display: grid;
  gap: 8px;
}

.review-form {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.review-field {
  display: grid;
  gap: 8px;
}

.review-field label {
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
}

.review-field input,
.review-field textarea,
.review-field select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  border: 1px solid #cfd9ea;
  border-radius: 16px;
  padding: 14px 14px;
  background: #ffffff;
  color: #0f172a;
}

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

.subtle-note {
  font-size: 14px;
  color: #475569;
  font-weight: 700;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .review-form-grid {
    grid-template-columns: 1fr !important;
  }

  .review-form {
    padding: 20px !important;
  }

  .proof-list {
    gap: 6px;
  }
}
/* CONVERSION TRUST PATCH END */


/* OUTCOME ALIGNMENT PATCH START */
.evidence-grid .card {
  min-height: 100%;
}

.review-preview-box {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.review-preview-box strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
}

.review-preview-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #334155;
}

.diagnostic-optional-block {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  padding: 18px;
}

.diagnostic-optional-block h3 {
  margin: 0 0 8px;
  line-height: 1.15;
}

.diagnostic-optional-block p {
  margin: 0;
  color: #334155;
}

@media (max-width: 860px) {
  .review-preview-box {
    padding: 16px;
  }

  .diagnostic-optional-block {
    padding: 16px;
  }
}
/* OUTCOME ALIGNMENT PATCH END */


/* DIAGNOSTIC ENGAGEMENT PATCH START */
.diag-prose-guide {
  margin: 10px 0 12px;
  padding: 14px 14px 12px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}

.diag-prose-note {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.diag-prose-note strong {
  color: #0f172a;
}

.diag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.diag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #cfd9ea;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
}

.diag-chip:hover,
.diag-chip:focus-visible {
  border-color: #7c3aed;
  box-shadow: 0 10px 24px rgba(124,58,237,.10);
  background: linear-gradient(180deg,#f8f7ff,#ffffff);
}

.diag-prose-status {
  font-size: 13px;
  color: #475569;
  font-weight: 700;
  line-height: 1.45;
}

.diag-prose-target {
  min-height: 156px !important;
}

.diagnostic-optional-block .review-form-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-top: 14px;
}

.diagnostic-optional-block .review-field {
  display: grid;
  gap: 8px;
}

.diagnostic-optional-block .review-field label {
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
}

.diagnostic-optional-block .review-field input {
  width: 100%;
  max-width: 100%;
  font: inherit;
  border: 1px solid #cfd9ea;
  border-radius: 16px;
  padding: 14px 14px;
  background: #ffffff;
  color: #0f172a;
}

@media (max-width: 860px) {
  .diag-prose-guide {
    padding: 12px 12px 10px;
    border-radius: 16px;
  }

  .diag-chip-row {
    gap: 6px;
  }

  .diag-chip {
    min-height: 34px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .diag-prose-target {
    min-height: 170px !important;
  }

  .diagnostic-optional-block .review-form-grid {
    grid-template-columns: 1fr !important;
  }
}
/* DIAGNOSTIC ENGAGEMENT PATCH END */


