/* FRA Prop HQ v7.4 — launch polish */
:root{
  --v74-lime:#c7ff56;
  --v74-lime-soft:#d9ff91;
  --v74-ink:#090c0b;
}

/* Keep the workspace behaving like a normal page: sidebar may stay fixed, topbar must not cover content. */
body:not(.signed-out) .topbar{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
}

/* Remove retired and internal launch-era UI. */
#view-propfinance,
.nav-item[data-view="propfinance"],
#betaChecklistPanel,
#launchReadinessPanel,
.nav-beta-tag,
#financePlaidChoice,
#connectBankButton,
#syncBankButton,
#connectionImportButton,
#connectionCsvGuideButton,
#csvExportGuideButton,
#csvImportModal,
#csvGuideModal,
#csvResultModal,
#manualFinanceButton{
  display:none!important;
}

/* Cleaner full-width logo asset. */
.brand-logo-full,
.app-brand-logo-full{
  object-fit:contain;
  object-position:left center;
  filter:none!important;
}
.brand-logo-full{width:clamp(164px,15vw,230px)!important}
.app-brand-logo-full{width:176px!important}
.footer-brand .brand-logo-full{width:190px!important}
.trust-page-nav .brand-logo-full{width:184px!important}

/* Public site polish. */
.fra-landing{
  background:
    radial-gradient(circle at 78% 4%,rgba(199,255,86,.08),transparent 31rem),
    linear-gradient(180deg,#080b0a 0%,#0a0d0c 58%,#080a09 100%)!important;
}
.landing-nav{
  backdrop-filter:blur(18px);
  background:color-mix(in srgb,#090c0b 86%,transparent);
  border-bottom:1px solid rgba(255,255,255,.055);
}
.landing-nav-links a{font-weight:680;letter-spacing:-.01em}
.launch-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  padding:8px 12px;
  border:1px solid color-mix(in srgb,var(--v74-lime) 24%,rgba(255,255,255,.1));
  border-radius:999px;
  color:#d9e2da;
  background:rgba(255,255,255,.025);
  font-size:11px;
  font-weight:760;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.launch-pill span{
  width:7px;height:7px;border-radius:999px;background:var(--v74-lime);
  box-shadow:0 0 0 5px rgba(199,255,86,.08);
}
.landing-hero-copy h1{max-width:780px;letter-spacing:-.055em}
.landing-hero-copy>p{max-width:660px;font-size:16px;line-height:1.7}
.landing-proof-row{gap:20px;flex-wrap:wrap}
.landing-proof-row span{display:inline-flex;align-items:center;gap:7px}
.landing-proof-row span:before{content:"";width:5px;height:5px;border-radius:99px;background:var(--v74-lime)}
.command-board{box-shadow:0 34px 90px rgba(0,0,0,.38);border-color:rgba(199,255,86,.12)}
.feature-card,.platform-partner-card,.modern-price-card{
  box-shadow:none!important;
  border-color:rgba(255,255,255,.075)!important;
}
.feature-card:hover,.platform-partner-card:hover,.modern-price-card:hover{
  transform:translateY(-2px);
  border-color:rgba(199,255,86,.22)!important;
}
.modern-price-card.featured{
  background:linear-gradient(180deg,rgba(199,255,86,.07),rgba(255,255,255,.018))!important;
}
.landing-how-it-works{
  width:min(100% - 48px,1240px);
  margin:0 auto;
  padding:88px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.landing-how-it-works-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.65fr);gap:42px;align-items:end;margin-bottom:34px}
.landing-how-it-works-head h2{margin:8px 0 0;font-size:clamp(36px,5vw,66px);letter-spacing:-.05em;line-height:.98}
.landing-how-it-works-head p{margin:0;color:var(--muted);line-height:1.7}
.landing-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.landing-step-card{padding:26px;border:1px solid rgba(255,255,255,.075);border-radius:18px;background:rgba(255,255,255,.018)}
.landing-step-card span{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(199,255,86,.1);color:var(--v74-lime);font:800 12px/1 ui-monospace,monospace}
.landing-step-card h3{margin:22px 0 9px;font-size:19px}
.landing-step-card p{margin:0;color:var(--muted);line-height:1.65;font-size:13px}
.landing-cta-strip{
  width:min(100% - 48px,1240px);
  margin:20px auto 92px;
  padding:34px;
  border:1px solid rgba(199,255,86,.18);
  border-radius:20px;
  background:linear-gradient(110deg,rgba(199,255,86,.09),rgba(255,255,255,.015));
  display:flex;align-items:center;justify-content:space-between;gap:28px;
}
.landing-cta-strip h2{margin:0 0 8px;font-size:clamp(27px,3.4vw,45px);letter-spacing:-.045em}
.landing-cta-strip p{margin:0;color:var(--muted);line-height:1.55}
.landing-cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* App polish. */
.sidebar-feedback-button strong{font-size:10px}
.sync-card #syncState{letter-spacing:-.01em}
.release-chip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}
.section-head>div>p,.panel-head p{max-width:780px}
#view-business>.section-head p{max-width:660px}
#paymentHealthPanel{margin-top:16px}

/* Actionable empty states. */
.v74-empty-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:112px;
  padding:22px;
  border:1px dashed rgba(199,255,86,.22);
  border-radius:16px;
  background:linear-gradient(120deg,rgba(199,255,86,.045),rgba(255,255,255,.012));
  text-align:left;
}
.v74-empty-copy{display:flex;align-items:flex-start;gap:14px;min-width:0}
.v74-empty-icon{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:rgba(199,255,86,.11);color:var(--v74-lime);font-weight:900}
.v74-empty-copy strong{display:block;margin:1px 0 6px;color:var(--text);font-size:13px}
.v74-empty-copy span{display:block;color:var(--muted);font-size:11px;line-height:1.55}
.v74-empty-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.v74-start-card{
  margin:0 0 16px;
  padding:24px;
  border:1px solid rgba(199,255,86,.18);
  border-radius:18px;
  background:linear-gradient(125deg,rgba(199,255,86,.07),rgba(255,255,255,.014));
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;
}
.v74-start-card h3{margin:6px 0 8px;font-size:24px;letter-spacing:-.035em}
.v74-start-card p{margin:0;color:var(--muted);line-height:1.6}
.v74-start-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* Onboarding. */
.onboarding-choice-grid button strong{font-size:13px}
.onboarding-choice-grid button span{line-height:1.5}
.onboarding-finish-list{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Legal/public pages. */
.trust-page-shell{padding-bottom:52px}
.trust-page-nav{position:relative!important;top:auto!important}
.trust-page-nav nav{flex-wrap:wrap}
.trust-hero{border-color:rgba(255,255,255,.075)!important}
.trust-hero-card{border-color:rgba(199,255,86,.14)!important}
.trust-section{border-color:rgba(255,255,255,.075)!important}
.trust-section h2{margin-top:30px}
.trust-section h2:first-child{margin-top:0}
.trust-section a{color:var(--v74-lime)}
.trust-note{
  margin:20px 0;
  padding:14px 16px;
  border-left:3px solid var(--v74-lime);
  background:rgba(199,255,86,.045);
  color:#b6c0b8;
  line-height:1.6;
}
.legal-index{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0}
.legal-index a{padding:8px 11px;border:1px solid rgba(255,255,255,.08);border-radius:9px;color:#c5cec7;text-decoration:none;font-size:12px}
.legal-index a:hover{border-color:rgba(199,255,86,.22);color:var(--v74-lime)}

/* Mobile pass. */
@media(max-width:1020px){
  .landing-how-it-works-head{grid-template-columns:1fr;gap:18px}
  .landing-step-grid{grid-template-columns:1fr}
  .landing-cta-strip{align-items:flex-start;flex-direction:column}
  .landing-cta-actions{width:100%}
  .landing-cta-actions .button{flex:1}
}
@media(max-width:820px){
  body:not(.signed-out){overflow:auto!important;height:auto!important}
  body:not(.signed-out) .app-shell{display:block!important;min-height:100dvh!important;height:auto!important}
  body:not(.signed-out) .main-content{min-height:100dvh!important;height:auto!important;overflow:visible!important;width:100%!important}
  .topbar{padding:14px 14px 10px!important;align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
  .topbar-left{width:100%;min-width:0}
  .topbar-left h1{font-size:20px!important}
  .topbar-left p{font-size:10px!important}
  .topbar-actions{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important}
  .topbar-actions .control,.topbar-actions .button{width:100%!important;min-width:0!important}
  .view{padding:14px!important}
  .section-head{align-items:flex-start!important;gap:12px!important}
  .section-head>.panel-actions{width:100%;display:flex;overflow-x:auto;padding-bottom:2px}
  .section-head>.panel-actions .button{white-space:nowrap}
  .dashboard-welcome{grid-template-columns:1fr!important}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .panel{border-radius:14px!important}
  .data-table{min-width:760px}
  .v74-start-card{grid-template-columns:1fr;gap:18px}
  .v74-start-actions{justify-content:flex-start}
  .v74-empty-card{align-items:flex-start;flex-direction:column}
  .v74-empty-actions{justify-content:flex-start}
  .landing-how-it-works,.landing-cta-strip{width:min(100% - 24px,1240px)}
}
@media(max-width:560px){
  .landing-nav{width:100%!important;padding-inline:12px!important}
  .landing-nav-actions .button{padding-inline:12px!important}
  .landing-hero,.landing-section,.landing-footer{width:min(100% - 24px,1240px)!important}
  .landing-hero{padding-top:40px!important}
  .landing-hero h1{font-size:43px!important}
  .landing-proof-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .command-board{padding:12px!important}
  .board-side-stack{grid-template-columns:1fr!important}
  .modern-pricing-grid{grid-template-columns:1fr!important}
  .landing-cta-actions{flex-direction:column}
  .landing-cta-actions .button{width:100%}
  .kpi-grid{grid-template-columns:1fr!important}
  .topbar-actions{grid-template-columns:1fr}
  .onboarding-finish-list{grid-template-columns:1fr}
  .modal-card{width:min(100% - 18px,680px)!important;max-height:92dvh!important;overflow:auto!important}
  .trust-page-shell{width:min(100% - 22px,1120px)!important}
  .trust-page-nav{gap:14px!important}
  .trust-page-nav nav{display:none!important}
  .trust-hero{padding:28px 0!important}
  .trust-hero h1{font-size:39px!important}
}
/* Retired CSV workflow remains in legacy code only; it is not exposed in v7.4. */
.panel:has(#importCsvButton2),
.connection-tables section:has(#importHistoryTable),
#connectionImportButton2,
#sampleDataCleanupPanel{
  display:none!important;
}
