/* TinyInvoice — shared + landing styles. Minimal by design. */
:root {
  --ink: #16181d;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --line: #e6e7ea;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span { color: var(--accent); }

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

.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }

.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); opacity: 1; }

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

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 680px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero .actions { display: flex; gap: 12px; justify-content: center; }

.hero .fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0 72px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

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

.feature p { font-size: 14px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { padding: 48px 0 72px; }

.section-title { text-align: center; margin-bottom: 8px; font-size: 32px; letter-spacing: -0.02em; }

.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg);
}

.plan.featured { border-color: var(--accent); box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12); }

.plan .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 { font-size: 15px; font-weight: 600; color: var(--muted); }

.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 2px; }

.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }

.plan .note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.plan ul { list-style: none; margin-bottom: 24px; flex: 1; }

.plan li { font-size: 14px; padding: 5px 0; color: var(--ink); }

.plan li::before { content: "✓  "; color: var(--accent); font-weight: 600; }

.plan .btn { width: 100%; text-align: center; }

/* ---------- FAQ ---------- */
.faq { padding: 24px 0 96px; max-width: 640px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }

.faq details p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

.footer-links a:hover { color: var(--ink); }

/* ---------- Legal / info pages ---------- */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

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

.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.legal h2 { font-size: 19px; letter-spacing: -0.01em; margin: 32px 0 8px; }

.legal p, .legal li { font-size: 15px; color: #374151; margin-bottom: 10px; }

.legal ul { padding-left: 22px; margin-bottom: 12px; }

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

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}

.contact-box p { margin-bottom: 6px; }

/* ---------- Success page ---------- */
.success-card {
  max-width: 480px;
  margin: 96px auto;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
}

.success-card h1 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 8px; }

.success-card p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

.license-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 20px 0;
  user-select: all;
  word-break: break-all;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .features, .plans { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .nav-links a:not(.btn) { display: none; }
}
