/* The Invoice Generator: temporary marketing site */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --violet: #5429df;
  --violet-hover: #4520c2;
  --violet-soft: #f3f0ff;
  --violet-line: #ded6ff;

  --ink: #1b1a22;
  --ink-muted: #55536a;
  --line: #e6e5ee;
  --surface: #ffffff;
  --surface-alt: #f8f8fb;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(27, 26, 34, 0.06), 0 8px 24px rgba(27, 26, 34, 0.06);

  --container: 1120px;
  --gutter: 24px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--violet);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--violet-hover);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 3.5vw + 0.75rem, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn-primary:hover {
  background: var(--violet-hover);
  color: #fff;
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.label-short {
  display: none;
}

@media (max-width: 480px) {
  .label-long {
    display: none;
  }
  .label-short {
    display: inline;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand img {
  width: 120px;
  height: 40px;
}

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

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

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

@media (max-width: 820px) {
  .site-nav ul {
    display: none;
  }
}

/* Sections */

.section {
  padding: 96px 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
}

/* Hero */

.hero {
  padding: 80px 0 96px;
  background: linear-gradient(180deg, var(--violet-soft) 0%, var(--surface) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-copy p.lead {
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 1.1875rem;
  max-width: 34em;
}

.hero-actions {
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* How it works */

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

.steps li {
  counter-increment: step;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 700;
}

.steps p,
.feature p {
  margin-top: 8px;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}

.feature svg {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--violet);
}

.feature p {
  margin-top: 0;
  color: var(--ink);
}

.feature-pro {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
}

@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Pricing */

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan-featured {
  border: 2px solid var(--violet);
  box-shadow: var(--shadow);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.badge-violet {
  background: var(--violet-soft);
  border-color: var(--violet-line);
  color: var(--violet);
}

.price {
  margin-top: 16px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.price-alt {
  margin-top: 6px;
  min-height: 1.6em;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 0.9375rem;
}

.plan li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--violet);
}

.plans-note {
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  text-align: center;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .price-alt:empty {
    display: none;
  }
}

/* Emails we send */

.emails {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  max-width: 820px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.emails-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: var(--violet);
}

.emails-icon svg {
  width: 28px;
  height: 28px;
}

.emails p {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

@media (max-width: 640px) {
  .emails {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

/* FAQ */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
  transition: transform 200ms ease;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--ink-muted);
}

/* Contact */

.contact {
  text-align: center;
}

.contact .section-head {
  margin: 0 auto 32px;
}

.contact-alt {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Legal pages */

.legal {
  padding: 64px 0 96px;
}

.legal .container {
  max-width: 760px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.legal-updated {
  margin-top: 12px;
  color: var(--ink-muted);
}

.legal-intro {
  margin-top: 24px;
  font-size: 1.0625rem;
}

.legal h2 {
  margin-top: 48px;
  font-size: 1.375rem;
}

.legal p,
.legal ul {
  margin-top: 12px;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 6px;
}

/* 404 */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found p {
  margin: 16px 0 32px;
  color: var(--ink-muted);
}
