/* ==========================================================================
   home.css — marketing homepage. Max width 1080px, centered.
   ========================================================================== */

.home-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---- nav ---- */
.home-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.home-nav .brand { display: flex; align-items: center; gap: 10px; }
.home-nav .brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.home-nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.home-nav-links a { color: var(--muted); }
.home-nav-links a:hover { color: var(--text); }
.theme-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 72px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accentText);
  background: var(--accent2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
  letter-spacing: .03em;
}
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 18px;
}
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-primary {
  background: var(--accent); color: #fff; border-radius: 10px;
  padding: 13px 26px; font-size: 15px; font-weight: 600; display: inline-block;
}
.hero-cta-primary:hover { color: #fff; filter: brightness(1.08); }
.hero-cta-secondary {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 13px 26px; font-size: 15px; font-weight: 600;
  display: inline-block; box-sizing: border-box;
}
.hero-proof { display: flex; gap: 22px; margin-top: 32px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-proof strong { color: var(--text); }

/* ---- product mock ---- */
.mock {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(16, 24, 40, .12);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--panel2);
}
.mock-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--border); }
.mock-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.mock-body { display: flex; }
.mock-list { width: 38%; border-right: 1px solid var(--border); }
.mock-row { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-row.sel { background: var(--accent2); }
.mock-row-name { font-size: 12px; font-weight: 700; }
.mock-row-sub {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-row-sub.ok { color: var(--ok); font-weight: 600; }
.mock-thread { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; min-height: 200px; }
.bubble-out { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 12px; max-width: 80%; }
.bubble-in { align-self: flex-start; background: var(--panel2); border-radius: 12px; padding: 8px 12px; font-size: 12px; max-width: 80%; }
.mock-composer {
  margin-top: auto; display: flex; gap: 8px; align-items: center;
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px;
}
.mock-composer span:first-child { font-size: 12px; color: var(--muted); flex: 1; }
.mock-send { background: var(--accent); color: #fff; border-radius: 6px; padding: 4px 12px; font-size: 11px; font-weight: 700; }

/* ---- sections ---- */
.section { padding: 24px 0 56px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.section-head p { font-size: 15px; color: var(--muted); margin: 0; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.service-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.service-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 7px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; text-wrap: pretty; }

/* ---- feature showcase rows ---- */
.features { padding: 24px 0 56px; display: flex; flex-direction: column; gap: 56px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accentText);
  background: var(--accent2); border-radius: 999px; padding: 5px 13px;
  margin-bottom: 14px; letter-spacing: .03em;
}
.feature-row h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.feature-row p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; text-wrap: pretty; }
.feature-mock {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .1); padding: 20px;
}
.bar-track { height: 8px; background: var(--panel2); border-radius: 99px; }
.bar-fill { height: 8px; border-radius: 99px; background: var(--accent); }
.mini-stat { background: var(--panel2); border-radius: 10px; padding: 12px; }
.mini-stat .v { font-size: 18px; font-weight: 700; }
.mini-stat .l { font-size: 10px; color: var(--muted); font-weight: 700; }

/* ---- how it works ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.step-n {
  width: 32px; height: 32px; border-radius: 999px; background: var(--accent2);
  color: var(--accentText); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 7px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; text-wrap: pretty; }

/* ---- pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-card {
  background: var(--panel); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  gap: 12px; position: relative;
}
.price-card.popular { border-color: var(--accent); }
.price-badge {
  position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 12px;
  letter-spacing: .03em;
}
.price-name { font-size: 16px; font-weight: 700; }
.price-amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.price-period { font-size: 14px; color: var(--muted); }
.price-desc { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; text-wrap: pretty; }
.price-cta {
  text-align: center; border-radius: 10px; padding: 12px; font-size: 14px;
  font-weight: 600; display: block; background: var(--panel2); color: var(--text);
  border: 1px solid var(--border);
}
.price-cta.primary { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- signup ---- */
.signup-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 48px 32px; margin-bottom: 32px; box-shadow: var(--shadow);
}
.signup-inner { max-width: 560px; margin: 0 auto; }
.signup-head { text-align: center; margin-bottom: 28px; }
.signup-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.signup-head p { font-size: 14px; color: var(--muted); margin: 0; text-wrap: pretty; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-card input, .signup-card select { background: var(--bg); padding: 10px 12px; }
.signup-err { font-size: 13px; color: var(--bad); }
.signup-success { text-align: center; padding: 24px 0; }
.signup-check {
  width: 52px; height: 52px; border-radius: 999px; background: var(--ok2);
  color: var(--ok); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; margin: 0 auto 18px;
}
.signup-success h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.signup-success p { font-size: 14px; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---- customer band + footer ---- */
.customer-band {
  background: var(--accent); border-radius: 20px; padding: 44px 32px;
  text-align: center; margin-bottom: 64px;
}
.customer-band h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.customer-band p { font-size: 15px; color: rgba(255, 255, 255, .85); margin: 0 0 24px; }
.customer-band a {
  background: #fff; color: var(--accent); border-radius: 10px; padding: 13px 28px;
  font-size: 15px; font-weight: 700; display: inline-block;
}
.home-footer {
  border-top: 1px solid var(--border); padding: 24px 0 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.home-footer .brand { display: flex; align-items: center; gap: 8px; }
.home-footer .brand span { font-size: 13px; font-weight: 600; color: var(--muted); }
.home-footer .fine { font-size: 12px; color: var(--muted); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero, .feature-row { grid-template-columns: 1fr; }
  .services-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .pricing-grid, .steps-grid, .signup-grid { grid-template-columns: 1fr; }
  .home-nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 36px 0 48px; gap: 32px; }
}
