/* Landing page — marketing shell for TimeOS Invoicing. Uses the app's design
   tokens (vars.css) so it reads as one product with the invoice editor. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform var(--motion-speed) var(--ease-soft),
    background var(--motion-speed) var(--ease-soft);
}
.btn:hover {
  transform: translateY(var(--lift));
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a.btn-primary {
  color: var(--paper);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}
.lede {
  font-size: 1.14rem;
  color: #4a4a4a;
  margin: 24px 0 32px;
  max-width: 34rem;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Invoice card */
.hero-art {
  display: flex;
  justify-content: center;
}
.paper-card {
  width: 100%;
  max-width: 360px;
  background: var(--paper);
  border: 1px solid var(--muted-light);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.28);
  transform: rotate(1.4deg);
}
.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.pc-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pc-num {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.pc-rule {
  height: 1px;
  background: var(--muted-light);
  margin: 14px 0;
}
.pc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 7px 0;
}
.pc-row.muted {
  color: var(--muted);
}
.pc-row.total {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
}
.step-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: #565656;
}

/* ── Features ────────────────────────────────────────────────────────────── */

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 90px;
}
.features h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 40px;
  text-align: center;
}
/* Editorial bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.tile {
  border: 1px solid var(--muted-light);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--motion-speed) var(--ease-soft), border-color 0.2s;
}
.tile:hover {
  transform: translateY(var(--lift));
  border-color: var(--ink);
}
.tile-wide {
  grid-column: span 2;
}
.tile h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.tile p {
  margin: 0;
  font-size: 0.94rem;
  color: #565656;
}
.tile code {
  font-size: 0.82em;
}
.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Stat tile (inverted) */
.tile-stat {
  background: var(--ink);
  border-color: var(--ink);
  justify-content: center;
}
.tile-stat .stat-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 12px;
}
.tile-stat p {
  color: #c2c2c2;
  font-size: 0.96rem;
}

/* Trust tile */
.tile-trust {
  background: var(--surface);
  border-color: var(--surface);
}

/* Currency tile */
.tile-currency {
  justify-content: center;
}
.currency-glyphs {
  font-family: Inter, var(--font);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Demo band ───────────────────────────────────────────────────────────── */

.demo-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 32px;
}
.demo-band-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.demo-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}
.demo-band p {
  color: #c9c9c9;
  font-size: 1.08rem;
  margin: 0 0 28px;
}
.demo-band .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px 32px 100px;
}
.faq h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 40px;
  text-align: center;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.faq-item p {
  margin: 0;
  font-size: 0.96rem;
  color: #565656;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--muted-light);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--ink);
}
.footer-sep {
  opacity: 0.5;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 56px;
  }
  .paper-card {
    transform: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .tile-wide {
    grid-column: span 1;
  }
}
