/* InvoicePack site — paper, ink, one stamp of colour */
:root {
  --paper: #f6f7f4;
  --paper-deep: #eceee9;
  --ink: #14302d;
  --ink-soft: #4a5f5c;
  --rule: #cfd8d4;
  --teal: #1f6f66;
  --teal-deep: #174f49;
  --amber: #e9a23b;
  --stamp: #c4432f;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv05";
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: #ffe7b3; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-soft); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 8px; border: 1.5px solid var(--teal);
  background: var(--teal); color: #fff; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn.quiet { background: transparent; color: var(--teal); }
.btn.quiet:hover { background: #e6efed; color: var(--teal-deep); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.028em; font-weight: 700; margin: 0 0 20px; max-width: 13ch; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 46ch; margin: 0 0 28px; color: var(--ink-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.cta .fine { font-size: 14px; color: var(--ink-soft); }

/* The mechanism: one merged PDF → many named PDFs */
.split { position: relative; display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(230px, 1.45fr); align-items: center; gap: 14px; }
.doc { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 18px 16px 16px; box-shadow: 4px 4px 0 var(--paper-deep), 8px 8px 0 #e3e6e1; }
.doc .lines { display: grid; gap: 7px; margin-top: 12px; }
.doc .lines i { display: block; height: 6px; border-radius: 3px; background: var(--paper-deep); }
.doc .lines i:nth-child(2) { width: 70%; } .doc .lines i:nth-child(4) { width: 55%; } .doc .lines i:nth-child(6) { width: 80%; }
.doc .tag { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); display: block; }
.doc .tag b { color: var(--ink); font-weight: 500; display: block; font-size: 13.5px; }
.doc .stamp {
  position: absolute; right: 12px; bottom: 12px; transform: rotate(-12deg);
  font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--stamp);
  border: 2px solid var(--stamp); border-radius: 4px; padding: 2px 7px; opacity: .85;
}
.arrow { display: grid; place-items: center; gap: 6px; color: var(--ink-soft); }
.arrow img { width: 34px; height: 34px; }
.arrow svg { width: 28px; height: 28px; }
.zip { background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.zip header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--paper-deep); font-family: var(--mono); font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.zip header b { color: var(--ink); font-weight: 500; }
.zip ul { list-style: none; margin: 0; padding: 6px 0; }
.zip li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-family: var(--mono); font-size: 13.5px; border-top: 1px solid #eef1ee; }
.zip li:first-child { border-top: 0; }
.zip li .pdf { display: inline-grid; place-items: center; width: 22px; height: 26px; border: 1.5px solid var(--rule); border-radius: 3px; font-size: 8px; font-weight: 700; color: var(--stamp); letter-spacing: .02em; }
.zip li.more { color: var(--ink-soft); font-family: var(--sans); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .zip li { animation: drop .5s cubic-bezier(.2,.7,.2,1) both; }
  .zip li:nth-child(1) { animation-delay: .25s } .zip li:nth-child(2) { animation-delay: .35s } .zip li:nth-child(3) { animation-delay: .45s }
  .zip li:nth-child(4) { animation-delay: .55s } .zip li:nth-child(5) { animation-delay: .65s } .zip li:nth-child(6) { animation-delay: .75s } .zip li:nth-child(7) { animation-delay: .9s }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
section { padding: 56px 0; border-top: 1px solid var(--rule); }
section h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 18px; max-width: 24ch; }
section p { max-width: var(--measure); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* problem/answer */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.contrast > div { padding-top: 14px; border-top: 3px solid var(--rule); }
.contrast > div:last-child { border-top-color: var(--teal); }
.contrast h3 { margin: 0 0 8px; font-size: 18px; }
.contrast p { margin: 0; color: var(--ink-soft); }

/* steps (an actual sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; max-width: 70ch; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; }
.steps h3 { margin: 4px 0 4px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* use list */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; max-width: 80ch; }
.uses li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.uses li b { display: block; font-weight: 600; }
.uses li span { color: var(--ink-soft); font-size: 15.5px; }

/* pricing: one panel, not a card kit */
.price { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; max-width: 760px; }
.price > div { padding: 26px 28px; }
.price > div:first-child { border-right: 1.5px solid var(--ink); background: #fff; }
.price > div:last-child { background: var(--ink); color: #fff; }
.price h3 { margin: 0 0 4px; font-size: 20px; }
.price .amount { font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 2px; }
.price .amount small { font-size: 16px; font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.price ul { margin: 14px 0 18px; padding-left: 18px; }
.price li { margin: 4px 0; }
.price > div:last-child .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.price > div:last-child .btn:hover { background: #f0b457; border-color: #f0b457; }
.price > div:last-child p, .price > div:last-child li { color: #d9e3e1; }
.price > div:last-child a { color: #fff; }

/* faq */
.faq { max-width: 72ch; }
.faq details { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; font-size: 14.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer .links { display: flex; gap: 18px; }

/* privacy page */
.prose { max-width: 70ch; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.08; margin: 0 0 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin: 5px 0; }
.prose .date { color: var(--ink-soft); margin-bottom: 28px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero h1 { max-width: none; }
  .two, .contrast, .uses, .price { grid-template-columns: 1fr; }
  .price > div:first-child { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .nav { display: none; }
}
@media (max-width: 480px) {
  .split { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); }
  .doc { margin-right: 10px; }
}
