/* Injectly marketing site
   Palette mirrors the in-app design system (DESIGN_SYSTEM_VISUAL_GUIDE.md):
   primary #0f172a · secondary #f1f5f9 · foreground #020617 · muted #64748b · border #cbd5e1 */

:root {
  --color-primary: #0f172a;
  --color-secondary: #f1f5f9;
  --color-bg: #ffffff;
  --color-fg: #020617;
  --color-muted: #64748b;
  --color-border: #cbd5e1;
  --color-accent-bg: #f8fafc;
  --radius: 14px;
  --shadow-soft: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --max-width: 1120px;
  --content-padding: clamp(20px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--content-padding);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-fg);
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-fg);
  text-decoration: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1e293b;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.app-store-badge svg {
  display: block;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--content-padding)
    clamp(48px, 8vw, 96px);
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-muted);
  max-width: 36ch;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.coming-soon {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

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

.phone {
  width: 100%;
  max-width: 280px;
  margin: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 8px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.35),
    0 8px 16px -8px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--color-secondary);
}

/* ---------- features ---------- */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--content-padding);
  background: var(--color-accent-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.features h2 {
  max-width: 24ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.feature-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ---------- screenshots row ---------- */

.screenshots {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--content-padding);
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  justify-items: center;
}

/* ---------- privacy block ---------- */

.privacy-block {
  background: var(--color-primary);
  color: #ffffff;
}

.privacy-block h2,
.privacy-block p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.privacy-block {
  padding: clamp(56px, 8vw, 96px) var(--content-padding);
  text-align: center;
}

.privacy-block p {
  color: rgba(248, 250, 252, 0.78);
}

.privacy-block a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- closing CTA ---------- */

.closing-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--content-padding);
  text-align: center;
}

.closing-cta h2 {
  margin-bottom: 24px;
}

.closing-cta .coming-soon {
  margin-top: 12px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--content-padding);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  margin: 0;
}

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

.footer-links a {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--color-fg);
  text-decoration: none;
}

.footer-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* ---------- legal pages ---------- */

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--content-padding);
}

.legal-shell h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
}

.legal-shell h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}

.legal-shell h3 {
  font-size: 1rem;
  margin-top: 1.5em;
}

.legal-shell p,
.legal-shell li {
  color: #1f2937;
}

.legal-shell ul {
  padding-left: 1.2em;
}

.legal-shell table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.92rem;
}

.legal-shell th,
.legal-shell td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-shell th {
  background: var(--color-accent-bg);
  font-weight: 600;
}

.legal-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-art {
    order: -1;
  }

  .phone {
    max-width: 240px;
  }

  .screenshot-row {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .screenshot-row .phone:nth-child(n + 3) {
    display: none;
  }

  .site-nav a:not(.btn) {
    display: none;
  }
}
