@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(/fonts/archivo.woff2) format('woff2-variations'), url(/fonts/archivo.woff2) format('woff2'); }
:root {
  --paper: #FFFFFF; --mist: #F4F4F2; --line: #E4E3DF; --ink: #131313; --muted: #66655F;
  --petrol: #06343E; --petrol-2: #0B3F4A; --teal: #146671; --teal-light: #7FD0D8;
  --orange: #FC9B3F; --orange-deep: #A9560F; --orange-soft: #FEF1E4; --coral-deep: #C2301D;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; font-stretch: 100%; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.display { font-stretch: 86%; font-weight: 640; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; font-stretch: 86%; font-weight: 640; font-size: 22px; letter-spacing: -0.02em; }
.brand span { color: var(--orange-deep); }
.by { color: var(--muted); font-size: 13px; text-decoration: none; }
.by:hover { color: var(--ink); }

.intro { padding: 48px 0 32px; }
.intro h1 { font-size: 34px; }
@media (min-width: 768px) { .intro { padding: 64px 0 40px; } .intro h1 { font-size: 46px; } }
.intro p { color: var(--muted); max-width: 640px; margin: 12px 0 0; font-size: 16px; }

.grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .grid { grid-template-columns: minmax(0, 1fr) 400px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
legend { padding: 0; font-weight: 600; font-size: 16px; float: left; width: 100%; }
.legend-note { clear: both; }
.legend-note { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.field .err { display: block; color: var(--coral-deep); font-size: 13px; margin-top: 4px; font-weight: 600; }
.input { position: relative; display: flex; align-items: center; }
.input input, select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--paper); }
.input input { -moz-appearance: textfield; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input .unit { position: absolute; right: 12px; color: var(--muted); font-size: 14px; pointer-events: none; }
.input input.has-unit { padding-right: 72px; }
.input input[aria-invalid="true"] { border-color: var(--coral-deep); }
input::placeholder { color: #767570; }

.result { position: sticky; top: 24px; }
.result .card { padding: 0; overflow: hidden; }
.result .head { padding: 24px; }
.result .label { color: var(--muted); font-size: 14px; margin: 0; }
.price { font-stretch: 86%; font-weight: 640; letter-spacing: -0.03em; line-height: 1; font-size: 56px; margin: 6px 0 0; }
.price.empty { color: var(--muted); font-size: 22px; letter-spacing: 0; font-stretch: 100%; font-weight: 600; line-height: 1.3; }
.sub { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.rows { margin: 0; padding: 8px 24px 16px; background: var(--mist); }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; text-align: right; }
.actions { padding: 16px 24px 24px; background: var(--mist); display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #F08A2A; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-on-ink { background: var(--orange); color: var(--ink); }
.copied { color: var(--teal); font-size: 14px; align-self: center; }

section.block { padding: 56px 0; }
@media (min-width: 768px) { section.block { padding: 64px 0; } }
section.block h2 { font-size: 30px; }
@media (min-width: 768px) { section.block h2 { font-size: 36px; } }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; } }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--petrol); color: #fff; font-size: 14px; font-weight: 600; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.tinted { background: var(--mist); }

.cta { background: var(--petrol); color: #fff; }
.cta .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1fr auto; padding-top: 64px; padding-bottom: 64px; } }
.cta h2 { font-size: 30px; }
@media (min-width: 768px) { .cta h2 { font-size: 36px; } }
.cta p { color: rgba(255,255,255,.75); margin: 12px 0 0; max-width: 620px; }
footer { padding: 24px 0 32px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.bar { display: none; }
@media (max-width: 959px) {
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--petrol); color: #fff; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .bar.on { display: flex; }
  .bar b { font-stretch: 86%; font-weight: 640; font-size: 24px; letter-spacing: -0.02em; }
  .bar span { color: rgba(255,255,255,.75); font-size: 13px; display: block; }
  .bar a { color: var(--teal-light); font-weight: 600; font-size: 14px; white-space: nowrap; }
  body.has-bar footer { padding-bottom: 96px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: no-preference) { .price { transition: opacity .15s ease-out; } }

/* ---- shared parts added with the multi-page site ---- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav a.by { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .nav { gap: 14px; } .nav a.by { display: none; } }
.crumbs { padding-top: 20px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs + .intro, .crumbs ~ * .intro { padding-top: 24px; }
.h2 { font-size: 30px; margin-bottom: 8px; }
@media (min-width: 768px) { .h2 { font-size: 36px; } }
.spaced { margin-top: 56px; padding-bottom: 64px; }
section[aria-labelledby="t"] { padding-bottom: 8px; }
.rows-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 920px; }
.rows-list li { border-bottom: 1px solid var(--line); }
.rows-list a { display: grid; gap: 2px; padding: 16px 0; text-decoration: none; color: var(--ink); }
@media (min-width: 768px) { .rows-list a { grid-template-columns: 320px 1fr; gap: 24px; } }
.rows-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rows-list b { font-weight: 600; }
.rows-list span { color: var(--muted); font-size: 15px; }
.cat { font-size: 16px; font-weight: 600; margin: 32px 0 0; color: var(--muted); }
.wrap > ul.rows-list:last-child, .wrap > .rows-list:last-of-type { margin-bottom: 64px; }
.kicker { color: var(--teal); font-weight: 600; font-size: 14px; margin: 0 0 8px !important; }
.meta { font-size: 14px !important; margin-top: 8px !important; }
.guide { padding-bottom: 64px; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-stretch: 86%; font-weight: 640; letter-spacing: -0.02em; line-height: 1.1; font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 20px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--orange-soft); border-radius: 12px; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: 0.9em; background: var(--mist); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--mist); padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.sources { font-size: 14px; color: var(--muted); }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--paper); resize: vertical; }
.full { grid-column: 1 / -1; }
.output { white-space: pre-wrap; background: var(--mist); border-radius: 12px; padding: 16px; font-size: 15px; line-height: 1.6; min-height: 120px; }
.count { font-size: 13px; color: var(--muted); }
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 8px 6px 0; }
.lines td { padding: 4px 8px 4px 0; vertical-align: top; }
.lines input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.icon-btn { height: 40px; width: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-size: 18px; color: var(--muted); }
.icon-btn:hover { border-color: var(--coral-deep); color: var(--coral-deep); }

/* ---- invoice generator ---- */
@media (min-width: 1100px) { .inv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.inv-side { position: sticky; top: 24px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.inv-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inv-title { font-stretch: 86%; font-weight: 640; font-size: 32px; letter-spacing: -0.02em; margin: 0; line-height: 1; }
.inv-num { color: var(--muted); margin: 6px 0 0; }
.inv-from { text-align: right; }
.inv-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.inv-meta span, .inv-project span, .inv-foot span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.inv-project { margin: 20px 0 0; }
.inv-lines { width: 100%; border-collapse: collapse; margin-top: 24px; }
.inv-lines th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--ink); padding: 6px 0; }
.inv-lines td { border-bottom: 1px solid var(--line); padding: 8px 0; vertical-align: top; }
.inv-lines .r { text-align: right; padding-left: 12px; white-space: nowrap; }
.inv-lines .empty { color: var(--muted); }
.inv-totals { margin: 12px 0 0 auto; max-width: 280px; }
.inv-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.inv-totals dt { color: var(--muted); } .inv-totals dd { margin: 0; }
.inv-totals .total { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 600; font-size: 16px; }
.inv-totals .total dt { color: var(--ink); }
.inv-foot { margin-top: 20px; }
.inv-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media print {
  @page { margin: 16mm; }
  body > *:not(main), .no-print, .crumbs, .cta, .bar, .skip { display: none !important; }
  main .wrap { padding: 0; max-width: none; }
  .grid { display: block; }
  .inv-side { position: static; }
  .paper { border: 0; padding: 0; border-radius: 0; }
}
.grid > * { min-width: 0; }
.lines { table-layout: fixed; }
.lines th:nth-child(2), .lines th:nth-child(3) { width: 22%; }
.lines th:nth-child(4) { width: 48px; }
.lines input { min-width: 0; }
@media (max-width: 520px) { .lines th:nth-child(1) { width: 40% !important; } .paper { padding: 20px; } .inv-from { text-align: left; } }
fieldset > *:not(legend) { clear: both; }
legend { margin-bottom: 8px; }
.hub { padding-bottom: 72px; }
.prose li.check { list-style: none; margin-left: -1.2em; } .prose li.check label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; } .prose li.check input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; transform: translateY(3px); }
@media (max-width: 700px) { .prose th, .prose td { min-width: 140px; } }
