/* CreditRun — same visual DNA as the app: dark, dense, monochrome with a mint accent. */

:root {
  --bg: #0a0b0d;
  --elevated: #16181c;
  --elevated-2: #1d2025;
  --border: rgba(255, 255, 255, 0.06);
  --text-primary: #f5f6f7;
  --text-secondary: #b3b8c0;
  --text-tertiary: #6c7380;
  --mint: #5ee3a7;
  --danger: #fa6b61;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 940px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover { opacity: 0.75; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Nav ---------- */

.nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: #06120c;
  font-weight: 900;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(94, 227, 167, 0.08);
  border: 1px solid rgba(94, 227, 167, 0.18);
  margin-bottom: 24px;
}

h1.hero-title {
  font-size: clamp(40px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 22px;
}

h1.hero-title .accent { color: var(--mint); }

.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

.cta-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text-primary);
  cursor: pointer;
}

.btn.primary {
  background: var(--mint);
  color: #06120c;
  border-color: transparent;
}

.btn.primary:hover { opacity: 0.9; }

.btn.ghost { background: transparent; }

.badge-soon {
  font-size: 10px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-tertiary);
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Section primitives ---------- */

section { padding: 56px 0; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

h2.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
}

.section-lede {
  max-width: 580px;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 36px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--elevated);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(94, 227, 167, 0.10);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: 17px;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 10px;
}

.step {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--elevated);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--elevated-2);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------- Screenshots / phone mockup ---------- */

.screenshots-section {
  padding: 32px 0 56px;
}

.phone-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.phone-frame {
  width: 260px;
  border-radius: 38px;
  background: #111315;
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 20px 16px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  position: relative;
}

.phone-frame::before {
  content: '';
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  display: block;
  margin: 0 auto 18px;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px 6px;
}

.mock-greeting {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.mock-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--elevated);
  border: 1px solid rgba(255,255,255,0.07);
}

.mock-card.dim {
  opacity: 0.5;
}

.mock-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.mock-bank {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.mock-cfd {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mock-card-label {
  font-size: 9px;
  color: var(--mint);
  font-weight: 600;
  margin-bottom: 8px;
}

.mock-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--text-tertiary);
}

.screenshot-caption { max-width: 480px; }

.caption-stat-row {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.caption-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.caption-stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mint);
  line-height: 1;
}

.caption-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ---------- Pricing ---------- */

.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 740px;
  margin-bottom: 18px;
}

.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06120c;
  background: var(--mint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tier-badge.secondary {
  background: var(--elevated-2);
  color: var(--text-secondary);
}

.pricing-card.highlight {
  border-color: rgba(94, 227, 167, 0.25);
}

.pricing-footnote {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.footer-by { margin-left: 4px; }
.footer-by a { color: var(--text-tertiary); }
.footer-by a:hover { color: var(--text-primary); opacity: 1; }

.btn-disabled {
  cursor: default;
  opacity: 0.6;
}

.btn-disabled:hover { opacity: 0.6; }

.pricing-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--elevated);
  border: 1px solid var(--border);
  max-width: 560px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-main {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-strike {
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-size: 16px;
}

.price-note {
  color: var(--text-tertiary);
  font-size: 13px;
}

.price-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.price-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}

.price-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0;
  top: 5px;
  background: var(--mint);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') center/contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') center/contain no-repeat;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 56px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a { color: var(--text-tertiary); }
.footer-links a:hover { color: var(--text-primary); opacity: 1; }

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal .meta {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 10px;
  letter-spacing: -0.005em;
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.legal ul, .legal ol {
  padding-left: 22px;
  margin: 10px 0;
}

.legal li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .phone-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .screenshot-caption { max-width: 100%; }
  .pricing-tiers { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links { gap: 14px; font-size: 12.5px; }
  section { padding: 44px 0; }
  .hero { padding: 56px 0 40px; }
  .pricing-card { padding: 22px; }
  .caption-stat-row { gap: 16px; }
}
