/* ============================================================
   Landing Page Styles — generated for District Atlanta
   Imports: ../../shared/cleo-tokens.css
   Personalization is contained in the :root vars below + tiny accents.
   ============================================================ */

:root {
  /* Company tokens (the only knobs per prospect) */
  --company-color:        #C21E2D;
  --company-color-soft:   #FCE9EB;
  --company-name:         "District Atlanta";
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px -120px auto -120px;
  height: 520px;
  background:
    radial-gradient(60% 80% at 80% 20%, var(--cleo-violet-tint) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 0%, var(--company-color-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: var(--cleo-radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--cleo-ink-2);
  box-shadow: var(--cleo-shadow-sm);
}
.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--company-color);
  box-shadow: 0 0 0 3px var(--company-color-soft);
}
.hero__title {
  font-size: clamp(34px, 4.2vw, 54px);
  margin: 18px 0 16px;
  color: var(--cleo-ink);
}
.hero__title-accent {
  color: var(--cleo-violet);
  font-style: normal;
  font-weight: 700;
}
.hero__subtitle {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--cleo-ink-muted);
  margin: 0 0 24px;
  max-width: 540px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }

/* Hero "Cleo App" mockup — faithful Payments-screen recreation */
.hero__visual { position: relative; }

.cleo-app {
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: 14px;
  box-shadow: var(--cleo-shadow-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 152px 1fr;
  font-size: 11px;
  line-height: 1.35;
  min-height: 420px;
}
.cleo-app::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cleo-violet) 0%, var(--company-color) 100%);
  opacity: 0.9;
  z-index: 2;
}

/* Sidebar */
.cleo-app__sidebar {
  background: var(--cleo-surface);
  border-right: 1px solid var(--cleo-border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cleo-app__sidebar-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; border-bottom: 1px solid var(--cleo-border); }
.cleo-app__sidebar-logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--cleo-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.cleo-app__sidebar-org { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.cleo-app__sidebar-org strong {
  font-family: var(--cleo-font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--cleo-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cleo-app__sidebar-org span { font-size: 9px; color: var(--cleo-ink-muted); display: inline-flex; align-items: center; gap: 4px; }
.cleo-app__dot { width: 5px; height: 5px; border-radius: 50%; background: #12B76A; display: inline-block; }
.cleo-app__quickpay {
  background: var(--cleo-violet);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  font-family: var(--cleo-font-display);
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
  pointer-events: none;
}
.cleo-app__quickpay span { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 9px; }
.cleo-app__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.cleo-app__nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--cleo-ink-muted);
  font-family: var(--cleo-font-body);
  cursor: default;
  pointer-events: none;
}
.cleo-app__nav-item.is-active {
  background: var(--cleo-violet-tint);
  color: var(--cleo-violet);
  font-weight: 600;
}
.cleo-app__nav-item svg { flex-shrink: 0; }

/* Main content */
.cleo-app__main {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  background: var(--cleo-surface);
}

/* Topbar */
.cleo-app__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cleo-border);
}
.cleo-app__topbar-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; }
.cleo-app__topbar-title strong { font-family: var(--cleo-font-display); font-weight: 700; font-size: 13px; color: var(--cleo-ink); flex-shrink: 0; }
.cleo-app__topbar-title span { font-size: 11px; color: var(--cleo-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cleo-app__avatar {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--cleo-font-display);
  font-weight: 700;
  font-size: 9px;
  flex-shrink: 0;
}

/* Stats */
.cleo-app__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cleo-app__stat {
  border: 1px solid var(--cleo-border);
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--cleo-surface);
}
.cleo-app__stat-label {
  font-size: 9.5px;
  color: var(--cleo-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cleo-app__stat-label--red { color: #B42318; }
.cleo-app__stat-num {
  font-family: var(--cleo-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--cleo-ink);
  letter-spacing: -0.01em;
}
.cleo-app__stat-sub { font-size: 9px; color: var(--cleo-ink-soft); }

/* Tabs */
/* Tabs (CSS-only, radio-driven) */
.cleo-app__tabbar { position: relative; display: flex; flex-direction: column; gap: 0; }
.cleo-app__tab-input { position: absolute; opacity: 0; pointer-events: none; }
.cleo-app__tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--cleo-border);
  padding: 0 2px;
}
.cleo-app__tab {
  font-size: 11px;
  color: var(--cleo-ink-muted);
  padding: 6px 0 8px;
  position: relative;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: color var(--cleo-dur) var(--cleo-ease);
}
.cleo-app__tab:hover { color: var(--cleo-ink-2); }
.cleo-app__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--cleo-ink);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--cleo-dur) var(--cleo-ease);
}

/* Active tab styling driven by sibling radio :checked */
#tab-draft-district-atlanta:checked  ~ .cleo-app__tabs label[for="tab-draft-district-atlanta"],
#tab-unpaid-district-atlanta:checked ~ .cleo-app__tabs label[for="tab-unpaid-district-atlanta"],
#tab-paid-district-atlanta:checked   ~ .cleo-app__tabs label[for="tab-paid-district-atlanta"],
#tab-other-district-atlanta:checked  ~ .cleo-app__tabs label[for="tab-other-district-atlanta"] {
  color: var(--cleo-ink);
  font-weight: 600;
}
#tab-draft-district-atlanta:checked  ~ .cleo-app__tabs label[for="tab-draft-district-atlanta"]::after,
#tab-unpaid-district-atlanta:checked ~ .cleo-app__tabs label[for="tab-unpaid-district-atlanta"]::after,
#tab-paid-district-atlanta:checked   ~ .cleo-app__tabs label[for="tab-paid-district-atlanta"]::after,
#tab-other-district-atlanta:checked  ~ .cleo-app__tabs label[for="tab-other-district-atlanta"]::after {
  opacity: 1;
}

/* Panels — only show the one matching the checked tab */
.cleo-app__panel { display: none; }
#tab-draft-district-atlanta:checked  ~ .cleo-app__panel--draft,
#tab-unpaid-district-atlanta:checked ~ .cleo-app__panel--unpaid,
#tab-paid-district-atlanta:checked   ~ .cleo-app__panel--paid,
#tab-other-district-atlanta:checked  ~ .cleo-app__panel--other {
  display: block;
}

/* Empty state for Draft / Other */
.cleo-app__empty {
  padding: 32px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--cleo-ink-soft);
  border-bottom: 1px solid var(--cleo-border);
  border-bottom: 0;
}

/* Table */
.cleo-app__table { display: flex; flex-direction: column; }
.cleo-app__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--cleo-border);
  font-size: 11px;
}
.cleo-app__row:last-child { border-bottom: 0; }
.cleo-app__row--head { color: var(--cleo-ink-muted); font-size: 10px; font-weight: 500; padding-top: 3px; padding-bottom: 6px; }
.cleo-app__alias { color: var(--cleo-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cleo-app__amount { color: var(--cleo-ink); font-family: var(--cleo-font-display); font-weight: 600; }

.cleo-app__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--cleo-radius-pill);
  font-size: 10px;
  font-weight: 600;
  width: max-content;
  white-space: nowrap;
}
.cleo-app__pill--pay { background: var(--cleo-violet); color: #fff; }
.cleo-app__pill--pay::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); display: inline-block; }
.cleo-app__pill--awaiting { background: transparent; color: #1570EF; padding-left: 4px; }
.cleo-app__pill--awaiting::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1570EF; display: inline-block; }
.cleo-app__pill--paid { background: #ECFDF3; color: #027A48; }

.cleo-app__pri {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--cleo-radius-pill);
  font-size: 10px;
  font-weight: 500;
  width: max-content;
  white-space: nowrap;
}
.cleo-app__pri--high { background: #FEF3F2; color: #B42318; }
.cleo-app__pri--medium { background: #FFFAEB; color: #B54708; }
.cleo-app__pri--low { background: #F2F4F7; color: #475467; }
.cleo-app__pri svg { width: 9px; height: 9px; }

.hero__company-tag {
  position: absolute;
  bottom: -28px;
  right: 24px;
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: var(--cleo-radius-pill);
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--cleo-shadow-md);
  font-size: 13px;
  color: var(--cleo-ink-muted);
}
.hero__company-tag strong { color: var(--cleo-ink); }
.hero__company-logo { height: 26px; width: auto; max-width: 100px; object-fit: contain; }

/* ---------- Pain section ---------- */
.pains__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: var(--cleo-radius-card);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--cleo-dur) var(--cleo-ease), transform var(--cleo-dur) var(--cleo-ease);
}
.pain-card:hover { border-color: var(--company-color); transform: translateY(-2px); }
.pain-card__num {
  display: inline-block;
  font-family: var(--cleo-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--company-color);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  padding: 4px 9px;
  background: var(--company-color-soft);
  border-radius: 6px;
}
.pain-card h3 { margin-bottom: 10px; }

/* ---------- How it would fit ---------- */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: var(--cleo-radius-card);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.step-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cleo-violet), var(--company-color));
  opacity: 0;
  transition: opacity var(--cleo-dur) var(--cleo-ease);
}
.step-card:hover::after { opacity: 1; }
.step-card__num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--cleo-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--cleo-bg-2);
  letter-spacing: -0.02em;
}
.step-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--cleo-violet-tint);
  color: var(--cleo-violet);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 10px; }

/* ---------- Features grid ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: var(--cleo-radius-card);
  padding: 26px 24px;
  transition: border-color var(--cleo-dur) var(--cleo-ease);
}
.feature-card:hover { border-color: var(--cleo-violet); }
.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cleo-violet-tint);
  color: var(--cleo-violet);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 17px; }

/* ---------- Trust strip ---------- */
.trust { padding: 24px 0; border-top: 1px solid var(--cleo-border); border-bottom: 1px solid var(--cleo-border); background: var(--cleo-surface); }
.trust__text { margin: 0; text-align: center; color: var(--cleo-ink-muted); font-size: 15px; }
.trust__text strong { color: var(--cleo-ink); }

/* ---------- Final CTA ---------- */
.final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.final-cta__inner .t-h2 { margin-top: 8px; max-width: 480px; }
.final-cta__sub { max-width: 460px; margin: 14px 0 24px; font-size: 17px; }
.final-cta__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.final-cta__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--cleo-ink-2);
  line-height: 1.5;
}
.final-cta__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cleo-violet-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237C5CFC' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 10px no-repeat;
}
.final-cta__fineprint { font-size: 13px; color: var(--cleo-ink-muted); margin-top: 14px; }

.final-cta__card {
  background: var(--cleo-surface);
  border: 1px solid var(--cleo-border);
  border-radius: var(--cleo-radius-card);
  padding: 28px 24px;
  box-shadow: var(--cleo-shadow-md);
  display: grid;
  gap: 18px;
}
.final-cta__card-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--cleo-border); }
.final-cta__chip { font-family: var(--cleo-font-display); font-weight: 600; color: var(--cleo-ink); font-size: 15px; }
.final-cta__amount { font-family: var(--cleo-font-display); font-weight: 700; color: var(--cleo-ink); font-size: 18px; }
.final-cta__pay { width: 100%; }
.final-cta__sent {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ECFDF3;
  border: 1px solid #ABEFC6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #027A48;
}
.final-cta__sent span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #027A48;
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.final-cta__sent p { margin: 0; line-height: 1.4; }
.final-cta__sent strong { color: #054F31; }

/* ---------- Cleo footer nav (page-specific) ---------- */
.cleo-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 32px;
}
.cleo-footer__nav h4 { font-family: var(--cleo-font-display); font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: 0.03em; }
.cleo-footer__nav a { display: block; padding: 5px 0; font-size: 14px; color: #C9CDDB; }
.cleo-footer__nav a:hover { color: var(--cleo-violet); }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet: ≤980px — stack hero, single-col CTA, 2-col cards */
@media (max-width: 980px) {
  .hero { padding: 32px 0 72px; }     /* extra bottom space for the now-static company tag */
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Pain/How/Features: 2-col at tablet (between 700–980px) */
  .pains__grid, .how__grid, .features__grid { grid-template-columns: repeat(2, 1fr); }

  .final-cta__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Move company tag from absolute to in-flow on small screens */
  .hero__company-tag {
    position: static;
    margin-top: 16px;
    display: inline-flex;
  }
}

/* Phone landscape / small tablet: ≤700px — single column for cards */
@media (max-width: 700px) {
  .pains__grid, .how__grid, .features__grid { grid-template-columns: 1fr; gap: 12px; }
  .pain-card, .step-card, .feature-card { padding: 24px 22px; }
}

/* Phone: ≤640px */
@media (max-width: 640px) {
  .hero { padding: 24px 0 64px; }
  .hero__title { font-size: clamp(32px, 8vw, 44px); margin: 14px 0 14px; }
  .hero__subtitle { font-size: 16px; margin-bottom: 22px; }
  .hero__ctas { gap: 10px; margin-bottom: 24px; }
  .hero__ctas .btn { flex: 1 1 auto; min-width: 0; }

  .hero__visual-card { padding: 18px; }                /* legacy class kept harmless */

  /* Cleo app mockup mobile tightening */
  .cleo-app { grid-template-columns: 128px 1fr; min-height: auto; font-size: 10px; }
  .cleo-app__sidebar { padding: 12px 8px; }
  .cleo-app__sidebar-org strong { font-size: 10px; }
  .cleo-app__quickpay { font-size: 10px; padding: 7px 8px; }
  .cleo-app__nav-item { padding: 5px 7px; font-size: 10px; }
  .cleo-app__main { padding: 12px 12px 14px; gap: 10px; }
  .cleo-app__topbar-title strong { font-size: 12px; }
  .cleo-app__topbar-title span { font-size: 10px; }
  .cleo-app__stats { gap: 6px; }
  .cleo-app__stat { padding: 7px 8px; }
  .cleo-app__stat-num { font-size: 13px; }
  .cleo-app__row { font-size: 10px; padding: 6px 2px; }
  .cleo-app__row--head { font-size: 9px; }

  .section__header { margin-bottom: 24px; }
  .t-h2 { font-size: clamp(26px, 7vw, 34px); }
  .t-h3 { font-size: 18px; }

  .step-card__num { font-size: 22px; top: 22px; right: 22px; }
  .pain-card__num { margin-bottom: 14px; }

  .final-cta__sub { font-size: 16px; }
  .final-cta__list li { font-size: 14px; }
  .final-cta__card { padding: 22px 20px; }
}

/* Small phone: ≤400px */
@media (max-width: 400px) {
  .hero__company-tag { font-size: 12px; padding: 6px 12px 6px 6px; }
  .hero__company-logo { height: 22px; }

  /* On the smallest screens, hide the sidebar entirely and show only the main app pane */
  .cleo-app { grid-template-columns: 1fr; }
  .cleo-app__sidebar { display: none; }
  .cleo-app__row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr); }
  .cleo-app__row > *:nth-child(4) { display: none; }   /* drop priority column */
}

/* Footer nav: 3 cols → 2 → tighter on tablet+phone */
@media (max-width: 980px) {
  .cleo-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  .cleo-footer__nav { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cleo-footer__nav h4 { margin-bottom: 8px; }
}

