/* Marketing page for whatsincoming.com. Colors match the app (web/src/index.css). */

:root {
  --text: #3f3d45;
  --text-h: #16141c;
  --text-muted: #6f6c78;
  --bg: #faf9fb;
  --surface: #fff;
  --border: #e5e4e7;
  --accent: #6d43c9;
  --accent-hover: #5a35ab;
  --accent-bg: rgba(109, 67, 201, 0.1);
  --shadow: rgba(20, 16, 30, 0.08) 0 12px 32px, rgba(20, 16, 30, 0.04) 0 2px 6px;
  --sans: system-ui, "Segoe UI", Roboto, sans-serif;

  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #cbc8d2;
    --text-h: #f3f2f5;
    --text-muted: #9d9aab;
    --bg: #17151d;
    --surface: #201d29;
    --border: #322e3d;
    --accent: #9b78ea;
    --accent-hover: #b298f0;
    --accent-bg: rgba(155, 120, 234, 0.16);
    --shadow: rgba(0, 0, 0, 0.4) 0 12px 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--text-h);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-inner {
  height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-h);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Buttons and links */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  transition: background 0.15s;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button--ghost {
  background: transparent;
  color: var(--accent);
  padding: 7px 16px;
}

.button--ghost:hover {
  background: var(--accent-bg);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.pill {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Hero */

.hero {
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.lede {
  font-size: 1.15rem;
  margin-top: 20px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-actions--center {
  justify-content: center;
}

/* Dashboard mock */

.mock {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-body {
  padding: 8px 18px 18px;
}

.mock-group {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 16px 0 6px;
}

.mock-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.mock-row:last-child {
  border-bottom: none;
}

.mock-title {
  color: var(--text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border-radius: 6px;
}

/* Carrier colors, as in the app's CarrierBadge. */
.badge--usps { background: #1f3a63; color: #fff; }
.badge--ups { background: #351c15; color: #ffb500; }
.badge--fedex { background: #4d148c; color: #fff; }
.badge--amazon { background: #ff9900; color: #131921; }

.status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status--out {
  color: #1a7f4e;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .status--out {
    color: #5fd39a;
  }
}

/* Sections */

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
}

.features p,
.steps p {
  color: var(--text);
  font-size: 0.97rem;
}

.preview {
  max-width: 680px;
  text-align: center;
}

.preview h2 {
  margin-bottom: 18px;
}

/* Small screens */

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-inner,
  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 40px;
  }

  .section {
    padding: 56px 0;
  }
}
