:root {
  color-scheme: dark;
  --bg: #101216;
  --panel: #20232b;
  --line: #2d323c;
  --text: #f4f6fb;
  --muted: #8e96a8;
  --accent: #f0b343;
  --green: #48d17c;
  --blue: #5aa7ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: #171a20;
}
.brand { color: var(--text); font-size: 24px; font-weight: 800; }
nav { display: flex; gap: 20px; }
.page { max-width: 1540px; margin: 0 auto; padding: 44px 5vw 72px; }
h1, h2 { margin: 0 0 14px; }
p { color: var(--muted); }
.hero, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}
.narrow { max-width: 460px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 14px;
}
.stats div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.stats span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; }
.stats strong { display: block; margin-top: 8px; font-size: 24px; }
label { display: block; color: var(--muted); margin: 14px 0 7px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #292d36;
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #161616;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}
.secondary { background: #2a2e38; color: var(--text); border: 1px solid var(--line); }
.inline-form { display: flex; gap: 12px; max-width: 720px; }
.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.switch-line input { width: 22px; height: 22px; }
.actions { grid-column: 1 / -1; display: flex; gap: 12px; justify-content: flex-end; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.user-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
}
.side-nav {
  padding-top: 104px;
}
.nav-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 20px;
}
.nav-item.active {
  background: #211e1a;
  color: var(--accent);
}
.nav-item b {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2a2e38;
  color: var(--muted);
  font-size: 14px;
}
.nav-item.active b {
  background: var(--accent);
  color: #141414;
}
.nav-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
}
.grid-dot {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background:
    linear-gradient(var(--muted), var(--muted)) 0 0 / 7px 7px,
    linear-gradient(var(--muted), var(--muted)) 11px 0 / 7px 7px,
    linear-gradient(var(--muted), var(--muted)) 0 11px / 7px 7px,
    linear-gradient(var(--muted), var(--muted)) 11px 11px / 7px 7px;
  background-repeat: no-repeat;
}
.red { background: #ff6a73; }
.green { background: #48d17c; }
.blue { background: #5aa7ff; }
.side-line {
  height: 1px;
  background: var(--line);
  margin: 28px 0 22px;
}
.wide-save {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
}
.hello {
  margin-bottom: 36px;
}
.hello h1 {
  font-size: 44px;
  line-height: 1.1;
}
.hello p {
  font-size: 22px;
  margin: 12px 0 0;
}
.overview-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}
.accent-top {
  position: relative;
  overflow: hidden;
}
.accent-top::before,
.pay-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.orange::before { background: var(--accent); }
.blue-top::before { background: var(--blue); }
.stats small {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.pay-card {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: #123022;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
}
.pay-card::before { background: transparent; }
.pay-card span { color: var(--green); font-size: 34px; }
.pay-card small { color: var(--muted); text-transform: none; }
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}
.filter-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.filter-row span {
  display: grid;
  gap: 5px;
}
.filter-row strong {
  font-size: 20px;
}
.filter-row small {
  color: var(--muted);
}
.filter-row input {
  width: 54px;
  height: 30px;
  accent-color: var(--accent);
}
.bottom-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}
.save-settings {
  min-width: 300px;
  font-size: 19px;
}
.import-button {
  position: relative;
  overflow: hidden;
}
.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
#import-form {
  display: none;
}
.list-page {
  max-width: 1120px;
}
.list-page h1 {
  font-size: 34px;
}
.list-page > p {
  font-size: 20px;
  margin-bottom: 28px;
}
.help-box {
  border: 1px solid #61491f;
  border-radius: 8px;
  background: #211d18;
  padding: 22px;
  margin-bottom: 24px;
  color: var(--accent);
}
.help-box ul {
  margin: 12px 0 0;
  padding-left: 24px;
  color: var(--muted);
}
.help-box li {
  margin: 8px 0;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2e38;
  margin-bottom: 22px;
}
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 19px;
}
.segmented .active {
  background: #20232b;
  color: var(--text);
}
.count-line {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.add-line {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 12px;
  margin-top: 12px;
}
.add-line button {
  min-height: 58px;
  font-size: 28px;
}
.item-box {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.empty-list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
}
.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 14px;
  background: #292d36;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pill-item button {
  min-height: 26px;
  width: 26px;
  padding: 0;
  border-radius: 50%;
  background: #3a404d;
  color: var(--text);
}
.text-list-form {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .grid, .stats, .user-shell, .overview-grid, .overview-stats { grid-template-columns: 1fr; }
  .title-row, .inline-form { flex-direction: column; }
  .actions { justify-content: stretch; flex-direction: column; }
  .side-nav { padding-top: 0; }
  .hello h1 { font-size: 34px; }
  .bottom-actions { justify-content: stretch; flex-direction: column; }
  .save-settings { min-width: 0; width: 100%; }
}

.landing-hero {
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  gap: 46px;
  align-items: center;
  padding: 36px 0 72px;
}
.hero-copy {
  max-width: 820px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #171a20;
  font-size: 14px;
}
.hero-copy h1 {
  max-width: 780px;
  font-size: 70px;
  line-height: 0.98;
  margin-bottom: 24px;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 700px;
  font-size: 22px;
  color: #b6bdcc;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.big-button {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 18px;
}
.feed-preview {
  position: relative;
  display: grid;
  gap: 16px;
}
.deal-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #20232b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.main-deal {
  transform: translateX(-28px);
  border-color: rgba(240, 179, 67, 0.48);
}
.deal-image {
  width: 94px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #303642;
  position: relative;
  overflow: hidden;
}
.deal-image::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}
.phone { background: linear-gradient(135deg, #202b3e, #5aa7ff); }
.car { background: linear-gradient(135deg, #2b2220, #f0b343); }
.flat { background: linear-gradient(135deg, #182c24, #48d17c); }
.deal-card time,
.deal-card span {
  color: var(--muted);
  font-size: 14px;
}
.deal-card h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  line-height: 1.2;
}
.deal-card strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 5px;
}
.deal-card p {
  margin: 10px 0 0;
  color: #b6bdcc;
}
.landing-section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}
.section-heading > span,
.key-entry span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.section-heading h2,
.key-entry h2 {
  font-size: 42px;
  line-height: 1.08;
}
.section-heading p,
.key-entry p {
  font-size: 20px;
  color: #aeb6c6;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.audience-grid article,
.steps div,
.mini-lot,
.key-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.audience-grid article {
  min-height: 210px;
  padding: 24px;
}
.audience-grid h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
.audience-grid p {
  color: #aeb6c6;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}
.steps {
  display: grid;
  gap: 14px;
}
.steps div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding: 22px;
}
.steps b {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #171717;
}
.steps strong {
  font-size: 21px;
}
.steps span {
  color: var(--muted);
}
.examples-band {
  overflow: hidden;
}
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mini-lot {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}
.mini-lot span {
  color: var(--text);
  font-size: 18px;
}
.mini-lot strong {
  color: var(--accent);
  white-space: nowrap;
}
.key-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
}
.demo-link {
  grid-column: 2;
  color: var(--muted);
}

@media (max-width: 980px) {
  .landing-hero,
  .split-section,
  .key-entry {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
  .audience-grid,
  .ticker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-deal {
    transform: none;
  }
  .demo-link {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: auto;
    padding-block: 16px;
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  nav {
    flex-wrap: wrap;
  }
  .landing-hero {
    min-height: auto;
    padding-top: 8px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-copy p,
  .section-heading p,
  .key-entry p {
    font-size: 18px;
  }
  .audience-grid,
  .ticker-grid {
    grid-template-columns: 1fr;
  }
  .deal-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .deal-image {
    width: 76px;
  }
  .section-heading h2,
  .key-entry h2 {
    font-size: 32px;
  }
  .inline-form {
    width: 100%;
  }
}
