/* VintageInvoice public landing — matches atelier brand tokens from the app. */
:root {
  --navy: #142c3c;
  --teal: #1a6f74;
  --gold: #a8843a;
  --brick: #8f3f36;
  --cream: #f6f3ea;
  --paper: #fffcf7;
  --muted: #4f5c58;
  --line: #cbb892;
  --display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 480px at 10% -10%, #d7ebea55, transparent 55%),
    radial-gradient(900px 420px at 90% 0%, #f0e2c455, transparent 50%),
    var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid #147b87; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-200%);
  z-index: 1000;
  background: var(--paper);
  color: var(--navy);
  padding: 12px 18px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4vw;
  background: var(--navy);
  color: var(--cream);
  border-top: 5px solid var(--gold);
}
.brand {
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.04em;
  color: var(--cream);
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e6c782;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 0.85rem;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: #e6c782; text-decoration: underline; }
.nav-cta {
  border: 1px solid #bca366;
  padding: 9px 14px;
  text-decoration: none;
}

/* Hero: one composition — brand already in header; headline + lead + CTA + full-bleed design plane */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 18px;
  padding: 28px 2vw 120px;
  transform: rotate(-2.5deg) scale(1.08);
  opacity: 0.42;
  pointer-events: none;
  animation: plane-drift 28s ease-in-out infinite alternate;
}
@keyframes plane-drift {
  from { transform: rotate(-2.5deg) scale(1.08) translateY(0); }
  to { transform: rotate(-1.5deg) scale(1.1) translateY(-18px); }
}
.hero-copy {
  max-width: 720px;
  margin: 0 5vw 48px;
  padding: clamp(28px, 5vw, 44px);
  background: color-mix(in srgb, var(--cream) 94%, white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  box-shadow: 0 18px 40px #142c3c22;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy);
  animation: rise 0.9s ease both;
}
.hero-lead {
  margin: 0 0 28px;
  max-width: 38ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  animation: rise 0.9s ease 0.12s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s ease 0.22s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: #fff9e9;
  border-color: var(--teal);
}
.btn-primary:hover { background: #155c60; color: #fff9e9; }
.btn-secondary {
  background: transparent;
  color: var(--brick);
  border-color: var(--brick);
}
.btn-secondary:hover { background: #f3e4d4; color: var(--brick); }

.notice {
  margin: 0 auto;
  max-width: 1100px;
  padding: 14px 5vw;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.notice strong { color: var(--navy); }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 5vw;
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}
.section-lead {
  margin: 0 0 32px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.design-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.design-card {
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.design-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #142c3c18;
}
.design-card figcaption {
  margin-top: auto;
  font-size: 0.85rem;
}
.design-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--navy);
}
.design-card span {
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet {
  flex: 1;
  min-height: 120px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink, #292514);
  background: var(--paper-tone, #f4df83);
  border: 1px solid var(--rule, #9c823f);
  box-shadow: inset 0 0 0 1px #0000000d;
}
.sheet .mast { font: 700 13px/1.2 Georgia, serif; letter-spacing: 0.04em; }
.sheet .rule { height: 3px; background: var(--rule, #9c823f); opacity: 0.85; }
.sheet .row { height: 7px; background: var(--wash, #dfc45f); opacity: 0.9; }
.sheet .row.short { width: 62%; }
.sheet .meta { margin-top: auto; font: 11px/1.3 "Courier New", monospace; opacity: 0.85; }

.classic-yellow { --paper-tone: #f4df83; --ink: #292514; --rule: #9c823f; --wash: #dfc45f; }
.typewriter { --paper-tone: #f8f5eb; --ink: #303334; --rule: #777970; --wash: #eae7dc; }
.typewriter .mast { font-family: "Courier New", monospace; font-weight: 700; }
.metropolitan { --paper-tone: #f8f2df; --ink: #142e40; --rule: #97732e; --wash: #e4d4a7; border-width: 3px; }
.merchants { --paper-tone: #f3e6c4; --ink: #3d241f; --rule: #8a4f3a; --wash: #e4d0aa; }
.workshop { --paper-tone: #f2e1c5; --ink: #3e302b; --rule: #695044; --wash: #dfc8a3; border-top: 8px solid #873f32; }
.dot-matrix { --paper-tone: #fafbf4; --ink: #263d52; --rule: #667d8d; --wash: #e8eeec; }
.dot-matrix .mast { font-family: "Courier New", monospace; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  padding: 22px 0 0;
  border-top: 5px solid var(--teal);
}
.step:nth-child(2) { border-top-color: var(--brick); }
.step:nth-child(3) { border-top-color: var(--gold); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--gold);
}
.step h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.who {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.who ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.who li {
  padding: 16px 18px;
  background: #f5ecd8;
  border-left: 4px solid var(--gold);
}
.who li strong { display: block; margin-bottom: 4px; font-family: Georgia, serif; }

.cta-band {
  margin: 0 5vw 64px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--navy);
  color: #e9dec5;
  border-top: 4px double var(--gold);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.cta-band h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
}
.cta-band p { margin: 0; max-width: 48ch; }
.cta-band .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cta-band .btn-primary:hover { background: #c49a4a; color: var(--navy); }

.site-footer {
  background: var(--navy);
  color: #e9dec5;
  border-top: 4px double var(--gold);
  padding: 28px 5vw 40px;
  font-size: 0.88rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer a { color: #e6c782; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 20px; }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 5vw 80px;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 800px) {
  .steps, .who { grid-template-columns: 1fr; }
  .hero-plane { grid-template-columns: repeat(3, minmax(120px, 1fr)); opacity: 0.28; }
  .site-header { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
