@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 650;
  font-display: swap;
  src: url("/assets/invoicetap/fonts/nunito-600-650.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --paper: #faf7f1;
  --ink: #28231e;
  --muted: #625a50;
  --accent: #a83929;
  --accent-hover: #8c2e20;
  --line: #ded6cb;
  --dark: #292320;
  --light: #fffaf2;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: ui-rounded, "Nunito", var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.3vw, 5rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.65rem); }
:target { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - clamp(2rem, 8vw, 7rem), 75rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 3; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead, .footer-row, .primary-nav, .footer-row nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.masthead, .footer-row { justify-content: space-between; }
.masthead { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.16rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.brand img { border-radius: .5rem; }
.primary-nav a, .footer-row nav a { font-size: .94rem; text-decoration: none; }
.primary-nav a { display: grid; min-height: 44px; align-items: center; }
.primary-nav a:hover, .footer-row nav a:hover { text-decoration: underline; }
.kicker { color: var(--accent); font-size: .81rem; font-weight: 740; letter-spacing: .105em; line-height: 1.4; text-transform: uppercase; }
.lede { max-width: 38rem; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.23rem); line-height: 1.58; }
.kicker + h1, .kicker + h2 { margin-top: .8rem; }
.button, .quiet-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 680; }
.button { padding: .73rem 1.15rem; color: white; background: var(--accent); border-radius: .42rem; text-decoration: none; }
.button:hover { background: var(--accent-hover); }
.button:focus-visible { outline-color: var(--accent); }
.quiet-link { text-decoration-thickness: 1px; }
.quiet-link:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 4.5svh, 4rem) clamp(1.75rem, 4.5svh, 3.5rem);
}
.hero-copy h1 {
  font-size: clamp(2.45rem, 5.7vw, 5.1rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.034em;
  text-wrap: wrap;
}
.hero h1 span { display: block; }
@supports (font-size: 1cqi) {
  .hero-copy { container-type: inline-size; }
  .hero-copy h1 { font-size: min(clamp(2.45rem, 5.7vw, 5.1rem), 12.2cqi); }
  .hero h1 span { white-space: nowrap; }
}
.hero .lede { max-width: 27rem; margin-top: 1.3rem; }
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.05rem;
  margin-top: 1.5rem;
}
.hero-cta { gap: .55rem; padding-inline: 1.05rem; border-radius: .65rem; }
.hero-cta span { font-size: 1rem; line-height: 1; }
.availability { color: var(--muted); font-size: .85rem; }
.hero-figure { max-width: min(32rem, 62svh); width: 100%; margin-inline: auto; }
.hero-photo {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1122 / 1402;
  border-radius: clamp(1rem, 3vw, 2.25rem);
  background: #ded9d6;
}
.hero-photo-plate { display: block; width: 100%; height: 100%; }
.hero-device-screen {
  /* Map the screen to the four corners of the glass in the 1122px-wide photo. */
  --photo-scale: tan(atan2(100cqw, 1122px));
  position: absolute;
  top: 0;
  left: 0;
  width: 650px;
  height: 1414px;
  overflow: hidden;
  border-radius: 100px;
  background: #fff;
  transform-origin: top left;
  transform: scale(var(--photo-scale)) matrix3d(
    .6597511, .07677195, 0, -.00002311039,
    -.15147584, .70626353, 0, .00001283063,
    0, 0, 1, 0,
    502.879, 107.341, 0, 1
  );
}
.hero-recording {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.hero-recording-toggle {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffffe6;
  color: var(--ink);
  cursor: pointer;
}
.hero-recording-toggle:not([hidden]) { display: grid; place-items: center; }
.hero-recording-toggle::before {
  content: "";
  width: .72rem;
  height: .82rem;
  border-inline: 2px solid currentColor;
}
.hero-recording-toggle[data-paused]::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(18% 0, 100% 50%, 18% 100%);
}
@media (hover: hover) and (pointer: fine) {
  .hero-recording-toggle:not([data-paused]) { opacity: 0; }
  .hero-photo:hover .hero-recording-toggle, .hero-recording-toggle:focus-visible { opacity: 1; }
}
.work-band { color: var(--light); background: var(--dark); padding-block: clamp(3.5rem, 7vw, 6.4rem); }
.work-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2.25rem, 8vw, 7rem); align-items: center; }
.work-copy .kicker { color: #f4a795; }
.work-copy .lede { color: #e3d6ca; margin-top: 1.2rem; }
.steps { display: grid; gap: .75rem; color: #e3d6ca; margin: 1.3rem 0; padding-left: 1.35rem; }
.steps li { padding-left: .25rem; }
.steps li::marker { color: #f4a795; font-weight: 700; }
.steps strong { color: var(--light); }
.on-dark:hover { color: #f4a795; }
.invoice-paper { background: #fffdf8; color: var(--ink); position: relative; border-radius: .45rem; padding: clamp(1rem, 4vw, 2.4rem); box-shadow: 0 14px 36px #100a073f; }
.invoice-paper::before { content: ""; position: absolute; inset: 0 0 auto; height: .25rem; background: #bd5845; border-radius: .45rem .45rem 0 0; }
.paper-head { display: flex; gap: .5rem; justify-content: space-between; align-items: start; margin-bottom: 1.5rem; }
.paper-kicker, .paper-ref { font-size: .8rem; color: var(--muted); }
.paper-ref, td { font-variant-numeric: tabular-nums; }
.paper-head h3 { font: 600 clamp(1.5rem, 3vw, 2.05rem)/1.15 var(--display); margin-top: .3rem; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.invoice-table :is(th, td) { text-align: left; padding-block: .7rem; border-bottom: 1px solid #e5dcd0; }
.invoice-table :is(td, th[scope="col"]:last-child) { text-align: right; }
.invoice-table thead { color: var(--muted); font-size: .8rem; }
.invoice-table tbody th { font-weight: 650; }
.invoice-table th span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.invoice-table tfoot td { font-weight: 770; }
.paper-note { margin-top: .8rem; color: var(--muted); font-size: .8rem; }

.section { padding-block: clamp(3.5rem, 7vw, 6.35rem); }
.section-heading { margin-bottom: clamp(1.65rem, 3.5vw, 2.5rem); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .45rem 2rem; }
.section-heading h2 { max-width: 19ch; text-wrap: wrap; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature { display: grid; border: 1px solid #e7ded3; border-radius: .85rem; overflow: hidden; }
.feature-copy { padding: clamp(1.1rem, 3vw, 2rem); }
.feature h3 { font: 600 clamp(1.45rem, 2.8vw, 1.95rem)/1.15 var(--display); }
.feature p { max-width: 29ch; margin-top: .55rem; color: var(--muted); }
.feature-clients { align-content: space-between; gap: .65rem; background: #efe5d9; }
.feature-clients .feature-copy p { max-width: 42ch; }
.client-window { width: min(80%, 27rem); aspect-ratio: 1094 / 826; margin-inline: auto; overflow: hidden; border-radius: 1rem 1rem 0 0; box-shadow: 0 8px 35px #58381721; background: white; }
.client-window img { width: 100%; }
.feature-stack { display: grid; gap: .75rem; }
.feature-mini { grid-template-columns: 1fr minmax(5rem, 28%); align-items: center; }
.feature-mini img { width: 100%; max-height: 8.15rem; object-fit: contain; padding: .55rem .65rem .55rem 0; }
.feature-prices { background: #fffaf2; }
.feature-estimates { background: #f1eae1; }
.feature-payments { background: #f7e9e4; }

.guide-band { background: #f0e9df; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.guide-card { min-width: 0; }
.guide-card > a { display: block; height: 100%; border: 1px solid #e3d9cd; border-radius: .7rem; overflow: hidden; background: #fffcf7; text-decoration: none; }
.guide-card > a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.guide-art { position: relative; aspect-ratio: 1.74; overflow: hidden; }
.guide-art img { position: absolute; inset: 8% 12%; width: 76%; height: 84%; object-fit: contain; filter: drop-shadow(0 .45rem .6rem #3d261317); }
.art-invoice-labour-and-materials { background: #e8cfad; }
.art-contractor-invoice-example { background: #e7d6ce; }
.art-estimate-vs-invoice { background: #e7e5ca; }
.art-overdue-invoice-reminder { background: #ecd9cd; }
.guide-card-copy { padding: 1.25rem; }
.guide-card h3 { margin-top: .48rem; font: 600 clamp(1.25rem, 1.9vw, 1.58rem)/1.16 var(--display); }

.faq-section { display: grid; grid-template-columns: .62fr 1fr; gap: 2rem clamp(2rem, 5vw, 6rem); }
.faqs { border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; padding: 1rem .25rem; font-weight: 660; }
.faqs summary::marker { color: var(--accent); }
.faqs p { color: var(--muted); padding: 0 .25rem 1.1rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.site-footer p { color: var(--muted); font-size: .86rem; margin-top: 1.1rem; }
.footer-row, .footer-row nav { flex-wrap: wrap; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0 0 2.25rem; padding: 0; list-style: none; color: var(--muted); font-size: .89rem; }
.breadcrumbs li + li::before { content: "/"; padding-inline-end: .6rem; color: #887b6f; }
.library-header { padding-block: 1.6rem 2.45rem; }
.library-header h1 { max-width: 14ch; text-wrap: wrap; }
.library-header .lede, .article-header .lede { margin-top: 1.1rem; }
.library-list { padding-bottom: clamp(3.5rem, 7vw, 6.35rem); }
.library-list > h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.article-header { padding-block: 1.6rem clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.article-head-grid { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 2rem clamp(2rem, 6vw, 5rem); }
.article-header h1 { max-width: 19ch; font-size: clamp(2.55rem, 4.8vw, 4.4rem); text-wrap: wrap; }
.article-art { border-radius: 1.2rem; aspect-ratio: 1.12; }
.byline { display: flex; flex-wrap: wrap; gap: .25rem .55rem; margin-top: 1.2rem; font-size: .91rem; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: minmax(9rem, .45fr) minmax(0, 42rem); justify-content: start; gap: 2rem clamp(2.25rem, 6vw, 6.5rem); padding-block: clamp(2rem, 5vw, 4.6rem); }
.article-toc { align-self: start; position: sticky; top: 1.5rem; max-width: 17rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.article-toc ol { display: grid; gap: .65rem; margin: .7rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.article-toc a { color: var(--muted); text-decoration: none; }
.article-toc a:hover { color: var(--accent); text-decoration: underline; }
.article-copy { min-width: 0; font-size: 1.06rem; line-height: 1.72; }
.article-copy > * + * { margin-top: 1rem; }
.article-copy > h2 { font-size: clamp(1.95rem, 3.4vw, 2.8rem); line-height: 1.12; text-wrap: wrap; }
.article-copy > h2:not(:first-child) { margin-top: 2.8rem; }
.article-copy a { color: var(--accent); }
.article-copy :is(ul, ol) { padding-left: 1.35em; margin-bottom: 0; }
.article-copy li + li { margin-top: .55rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .55rem; background: #fffdf9; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.35; }
.table-wrap caption { text-align: left; padding: .85rem .8rem; color: var(--muted); font-size: .9rem; }
.table-wrap :is(th,td) { padding: .7rem .8rem; border-bottom: 1px solid #e8ded4; text-align: left; }
.table-wrap thead, .table-wrap tfoot { background: #f4ece1; }
.table-wrap tfoot td { font-weight: 700; }
.table-wrap tbody th { font-weight: 620; }
.table-wrap tr:last-child :is(th,td) { border-bottom: 0; }
.table-wrap :is(td,th):last-child { min-width: 4.7rem; }
.article-note, .email-example, .copy-template { padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid var(--line); border-radius: .55rem; background: #f4ece1; }
.article-note h3 { margin-bottom: .4rem; font-size: 1.07rem; }
.email-example p + p { margin-top: .8rem; }
.copy-template { white-space: pre-wrap; overflow-wrap: break-word; font: .94rem/1.6 ui-monospace, monospace; }
.guide-shot { padding: 1.1rem; background: #f0e9df; border-radius: .65rem; text-align: center; }
.guide-shot img { width: min(65%, 15.5rem); margin-inline: auto; border-radius: .9rem; box-shadow: 0 4px 18px #42301d24; }
.guide-shot figcaption { color: var(--muted); margin-top: .8rem; font-size: .89rem; }

@media (max-width: 760px) {
  .hero, .work-grid, .faq-section, .article-head-grid, .article-grid { grid-template-columns: 1fr; }
  .hero { gap: 1.7rem; padding-top: 2.4rem; }
  .hero-copy { width: min(100%, 30rem); }
  .hero .lede { margin-top: .95rem; }
  .hero-actions { margin-top: 1.15rem; }
  .hero-figure { max-width: 30rem; }
  .masthead { min-height: 4rem; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 1.8rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .article-art { aspect-ratio: 2; }
  .article-toc { position: static; max-width: none; }
  .article-grid { gap: 1.55rem; }
}
@media (max-width: 420px) {
  .primary-nav a { font-size: .85rem; }
  .table-wrap :is(th,td) { padding: .6rem .45rem; }
  .guide-cards { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .guide-card-copy { padding: .75rem; }
  .guide-card .kicker { font-size: .74rem; letter-spacing: .06em; }
  .guide-card h3 { font-size: 1.18rem; }
}
@media print {
  body { color: black; background: white; }
  .site-header, .site-footer, .guide-band, .breadcrumbs, .article-toc, .article-art, .skip { display: none; }
  .wrap { width: 100%; }
  .article-header { padding-block: 0 1rem; }
  .article-head-grid, .article-grid { display: block; }
  .article-grid { padding-top: 1rem; }
  .article-copy { font-size: 11pt; }
  .article-copy h2 { break-after: avoid; }
  .table-wrap, .email-example, .copy-template, .guide-shot { break-inside: avoid; }
}
