/* Shark Central. Palette from sharksystems.ai. Red is used only for money lost. */
:root {
  --steel: #2E6DA4;
  --steel-deep: #1F4E78;
  --teal: #1FA47E;
  --teal-deep: #0B5E46;
  --ink: #15222C;
  --ink-soft: #3B4D59;
  --ice: #E7EFF5;
  --ice-soft: #F2F7FB;
  --line: #CCDBE6;
  --red: #D8392F;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ice-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--steel-deep); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* Top bar */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--steel); font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--ink); }
.fin { width: 28px; height: 28px; }

.lang { display: inline-flex; border: 2px solid var(--steel); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button {
  font: inherit; font-weight: 700;
  min-height: 48px; min-width: 0; padding: 0 14px;
  border: 0; background: #fff; color: var(--steel-deep); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--steel); color: #fff; }

/* Page */
main { padding-top: 20px; padding-bottom: 8px; }
.stack > * + * { margin-top: 20px; }
.cols > * + * { margin-top: 20px; }

.status-line { padding: 32px 0; color: var(--ink-soft); }

.banner {
  background: var(--ice); border: 2px solid var(--teal); border-radius: var(--radius);
  padding: 14px 16px;
}
.banner strong { display: block; color: var(--teal-deep); font-size: 20px; }

.head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.head p { color: var(--ink-soft); }

/* Three big numbers */
.big { display: grid; gap: 12px; }
.big-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; border-left: 8px solid var(--steel);
}
.big-card.teal { border-left-color: var(--teal); }
.big-card.ink { border-left-color: var(--ink); }
.big-num { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-card.steel .big-num { color: var(--steel); }
.big-card.teal .big-num { color: var(--teal-deep); }
.big-label { font-size: 20px; font-weight: 700; margin-top: 4px; }
.big-hint { color: var(--ink-soft); }

/* Cards and section titles */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.card h2 { font-size: 22px; line-height: 1.2; }
.hint { color: var(--ink-soft); margin-top: 2px; }

/* More numbers */
.rows { margin-top: 8px; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Leads per week: CSS-only bars */
.bars { display: flex; align-items: flex-end; gap: 8px; margin-top: 16px; }
.bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.bar-fill { width: 100%; max-width: 56px; height: calc(var(--share) * 120px); min-height: 4px; background: var(--steel); border-radius: 8px 8px 0 0; }
.bar-fill.zero { background: var(--line); }
.bar-d { margin-top: 6px; color: var(--ink-soft); text-align: center; line-height: 1.25; }

/* Lead list */
.leads { margin-top: 8px; }
.lead { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.lead:first-child { border-top: 0; }
.lead-name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.lead-meta { color: var(--ink-soft); grid-column: 1; }
.lead-phone { white-space: nowrap; }
.lead-badge-row { grid-column: 1; }
.call {
  grid-column: 2; grid-row: 1 / span 4;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; min-width: 104px; padding: 0 16px;
  background: var(--steel); color: #fff; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.call:active { background: var(--steel-deep); }
.call svg { width: 20px; height: 20px; flex: none; }

.badge {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-weight: 700; line-height: 1.4; border: 2px solid transparent;
}
.badge.New { background: #fff; color: var(--steel-deep); border-color: var(--steel); }
.badge.Texted { background: var(--ice); color: var(--ink-soft); border-color: var(--ice); }
.badge.Booked { background: #D9F2EA; color: var(--teal-deep); border-color: #D9F2EA; }
.badge.Won { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.badge.Lost { background: #fff; color: var(--red); border-color: var(--red); }

/* Start and not-found screens */
.center-card { text-align: left; }
.center-card h1 { font-size: 28px; line-height: 1.2; }
.center-card p { margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; margin-top: 16px;
  background: var(--steel); color: #fff; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}

.foot { padding-top: 24px; padding-bottom: 40px; color: var(--ink-soft); }
.foot p + p { margin-top: 4px; }
.foot a { display: inline-block; min-height: 48px; line-height: 48px; }

/* Wider screens */
@media (min-width: 720px) {
  main { padding-top: 32px; }
  .wrap { padding: 0 24px; }
  .big { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .head h1 { font-size: 38px; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .cols > * + * { margin-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .call, .lang button, .btn { transition: background-color 0.15s ease; }
}
