/* InvoiceCheck public site: a supplier invoice checked in red pen.
   White printer paper on a grey desk, carbon-black print (Schibsted Grotesk), hairline invoice rules,
   red ballpoint marks drawn as SVG with notes in Kalam, one highlighter swipe, green for money credited back. */

@font-face{font-family:"Schibsted Grotesk";src:url("/assets/schibsted-grotesk.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"Kalam";src:url("/assets/kalam-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Kalam";src:url("/assets/kalam-700.woff2") format("woff2");font-weight:700;font-display:swap}

:root{
  --desk:#e3e8f0; --paper:#ffffff; --band:#f2f3f5;
  --ink:#17191c; --ink-2:#3b4048; --muted:#5b626c; --rule:#d5d9de; --rule-2:#eceef1;
  --blue:#1f4fa8; --blue-deep:#173d85; --blue-wash:#edf2fb; --blue-line:#c9d6ee; --pen:#c8232c; --pen-ink:#a81d25; --hl:#ffe45c; --stamp:#1b7a4f;
  --type:"Schibsted Grotesk",ui-sans-serif,system-ui,sans-serif; --hand:"Kalam","Bradley Hand",cursive;
  --sheet:1180px; --pad:clamp(20px,5vw,64px);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scrollbar-color:#b9bec5 var(--desk)}
body{margin:0;background:var(--desk);color:var(--ink);font:400 17px/1.55 var(--type);font-variant-numeric:lining-nums;padding:clamp(0px,2.2vw,28px) clamp(0px,2.2vw,28px) 40px}
::selection{background:var(--hl);color:var(--ink)}
input,textarea{caret-color:var(--pen)}
img{max-width:100%;display:block}
a{color:var(--ink);text-decoration-color:color-mix(in srgb,var(--ink) 35%,transparent);text-underline-offset:3px}
a:hover{text-decoration-color:var(--pen)}
:focus-visible{outline:2px solid var(--pen);outline-offset:3px;border-radius:4px}
h1,h2,h3{margin:0;letter-spacing:-.025em;line-height:1.08;text-wrap:balance}
p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the sheet of paper everything is printed on */
.sheet{max-width:var(--sheet);margin:0 auto;background:var(--paper);box-shadow:0 1px 2px rgba(23,25,28,.08),0 18px 50px -24px rgba(23,25,28,.28);overflow:clip}

/* buttons: printed ink, not colour */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:8px;border:1.5px solid var(--ink);
  background:var(--ink);color:#fff;font:600 16px/1 var(--type);text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.btn:hover{background:#000}
.btn.quiet{background:transparent;color:var(--ink)}
.btn.quiet:hover{background:var(--band)}
.btn.small{min-height:38px;padding:0 14px;font-size:14.5px}
.link{color:var(--ink);font-weight:600;font-size:15.5px;text-decoration:none;white-space:nowrap}
.link:hover{text-decoration:underline;text-decoration-color:var(--pen)}

/* letterhead = navigation */
.letterhead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px var(--pad);border-bottom:3px double var(--ink)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand b{display:block;font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.brand small{display:block;font-size:13px;color:var(--muted)}
.letterhead nav{display:flex;align-items:center;gap:22px}
.letterhead .btn{min-height:40px;padding:0 16px;font-size:15px}

/* first viewport */
.hero{padding:40px var(--pad) 40px}
.hero-head{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px 56px;align-items:end;padding-bottom:28px}
.hero h1{font-size:clamp(38px,4.6vw,60px);font-weight:800;letter-spacing:-.035em;max-width:15ch}
.memo{font-size:clamp(17px,1.5vw,19.5px);color:var(--ink-2);max-width:46ch;margin:0 0 22px}
.cta{display:flex;flex-wrap:wrap;gap:10px}
.fine{font-size:14px;color:var(--muted);margin-top:12px}
.meta{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 26px;padding:10px 6px;font-size:14.5px;border-top:1px solid var(--rule)}
.meta dl{margin:0;display:flex;flex-wrap:wrap;gap:6px 26px}.meta p{margin:0}
.meta div{display:flex;gap:8px}
.meta dt{color:var(--muted)}
.meta dd{margin:0;font-weight:700}
.meta .sample{margin-left:auto;font-size:13.5px;color:var(--muted)}

/* the invoice lines */
.lines{border-top:2px solid var(--ink);border-bottom:1px solid var(--rule);font-size:16px}
.lines .row{display:grid;grid-template-columns:minmax(0,1fr) 84px 118px 128px 44px minmax(150px,200px);align-items:center;column-gap:14px;padding:12px 6px;border-bottom:1px solid var(--rule-2)}
.lines .row:last-child{border-bottom:0}
.lines .head{padding:9px 6px;background:var(--band);font-size:13.5px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--rule)}
.lines .n{text-align:right;white-space:nowrap}
.lines .desc small{display:block;font-size:13.5px;color:var(--muted)}
.lines .chk{display:flex;justify-content:center}
.note,.note-h{font-family:var(--hand);color:var(--pen-ink);font-size:18px;line-height:1.2}
.note-h{font-family:var(--type);font-size:13.5px;color:var(--muted)}
.price .fix{display:block;font-family:var(--hand);font-weight:700;color:var(--pen-ink);font-size:19px;line-height:1.1}

/* pen marks */
.pen{fill:none;stroke:var(--pen);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.pen path{stroke-dasharray:1;stroke-dashoffset:0}
.struck,.circled{position:relative;display:inline-block}
.struck .strike{position:absolute;left:-4px;right:-4px;top:2px;width:calc(100% + 8px);height:calc(100% - 2px);overflow:visible}
.circled .ring{position:absolute;left:-16px;top:-12px;width:calc(100% + 30px);height:calc(100% + 24px);overflow:visible}
.tick,.mark-x{width:24px;height:24px}
.tick{stroke:var(--stamp)}
.pen-ready .pen path{stroke-dashoffset:1}
.pen-ready .note,.pen-ready .price .fix{opacity:0;transform:translateY(3px)}
.pen-go .pen path{stroke-dashoffset:0;transition:stroke-dashoffset .55s cubic-bezier(.22,1,.36,1)}
.pen-go .note,.pen-go .price .fix{opacity:1;transform:none;transition:opacity .4s ease-out,transform .4s ease-out}
/* the pen works down the invoice, line by line */
.pen-go .row:nth-child(2) .strike path{transition-delay:.05s}.pen-go .row:nth-child(2) .fix{transition-delay:.45s}
.pen-go .row:nth-child(2) .ring path{transition-delay:.55s}.pen-go .row:nth-child(2) .mark-x path{transition-delay:1s}.pen-go .row:nth-child(2) .note{transition-delay:1.15s}
.pen-go .row:nth-child(3) .tick path{transition-delay:1.45s}.pen-go .row:nth-child(4) .tick path{transition-delay:1.6s}.pen-go .row:nth-child(5) .tick path{transition-delay:1.75s}
.pen-go .row:nth-child(6) .ring path{transition-delay:1.95s}.pen-go .row:nth-child(6) .mark-x path{transition-delay:2.4s}.pen-go .row:nth-child(6) .note{transition-delay:2.5s}
.pen-ready .hl svg{clip-path:inset(0 100% 0 0)}
.pen-go .hl svg{clip-path:inset(0 0 0 0);transition:clip-path .5s cubic-bezier(.22,1,.36,1) 2.85s}

/* totals box */
.totals{display:flex;justify-content:flex-end;padding-top:18px}
.totals dl{margin:0;min-width:min(100%,380px);font-size:16.5px}
.totals div{display:flex;justify-content:space-between;gap:24px;padding:7px 6px}
.totals dt{color:var(--ink-2)}
.totals dd{margin:0;font-weight:600}
.totals .due{border-top:1.5px solid var(--ink);border-bottom:3px double var(--ink);margin-top:4px;padding:12px 6px}
.totals .due dt{font-weight:800;color:var(--ink);font-size:19px}
.totals .due dd{font-weight:800;font-size:24px;letter-spacing:-.02em}
.hl{position:relative;display:inline-block;padding:0 6px;isolation:isolate}
.hl svg{position:absolute;inset:-2px -4px;width:calc(100% + 8px);height:calc(100% + 4px);z-index:-1}
.hl path{fill:var(--hl)}

/* sections printed further down the sheet */
.block{padding:64px var(--pad);border-top:1px solid var(--rule)}
.block h2{font-size:clamp(28px,3.2vw,40px);font-weight:800}
.lede{font-size:18px;color:var(--ink-2);max-width:60ch;margin-top:12px}

/* checks table */
.checks,.prices{width:100%;border-collapse:collapse;margin-top:28px;border-top:2px solid var(--ink)}
.checks th,.checks td,.prices th,.prices td{text-align:left;vertical-align:top;padding:16px 14px 16px 6px;border-bottom:1px solid var(--rule-2)}
.checks thead th,.prices thead th{background:var(--band);font-size:13.5px;font-weight:600;color:var(--muted);padding:9px 14px 9px 6px;border-bottom:1px solid var(--rule)}
.checks tbody th{font-weight:800;font-size:17px;width:150px}
.checks td{color:var(--ink-2)}
.checks td:last-child{color:var(--muted);font-size:15.5px;width:34%}

/* proof */
.proof{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:48px;align-items:start}
.statement{position:relative;border:1px solid var(--rule)}
.statement table{width:100%;border-collapse:collapse;font-size:16px}
.statement caption{text-align:left;padding:10px 14px;background:var(--band);font-size:13.5px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--rule)}
.statement th{text-align:left;font-weight:500;color:var(--ink-2);padding:11px 14px;border-bottom:1px solid var(--rule-2)}
.statement td{text-align:right;font-weight:700;padding:11px 14px;border-bottom:1px solid var(--rule-2)}
.statement tr.credit th,.statement tr.credit td{color:var(--stamp);font-weight:800;border-bottom:0}
.stamp{display:none}

/* how it works (a real sequence) */
.how{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:2px solid var(--ink);counter-reset:s}
.how li{counter-increment:s;padding:20px 24px 4px 0;display:flex;flex-direction:column;gap:6px}
.how li + li{padding-left:24px;border-left:1px solid var(--rule)}
.how li::before{content:counter(s);font-family:var(--hand);font-weight:700;color:var(--pen-ink);font-size:30px;line-height:1}
.how b{font-size:19px}
.how span{color:var(--ink-2)}

/* screenshots */
.shots{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:28px}
.shots h2{grid-column:1 / -1}
.shot{margin:0;grid-column:1 / span 9}
.shot.wide{grid-column:1 / -1}
.shot.phone{grid-column:10 / span 3}
.shot img{width:100%;height:auto;border:1px solid var(--rule);border-radius:6px}
.shot figcaption{font-size:14.5px;color:var(--muted);margin-top:10px}
.shots > .fine{grid-column:1 / -1;margin:0}

/* price sheet */
.prices tbody th{font-weight:800;font-size:18px}
.prices tbody th small,.prices td small{display:block;font-weight:400;font-size:14px;color:var(--muted)}
.prices td small{display:inline;margin-left:2px}
.prices .n{text-align:right;font-size:18px;font-weight:700;white-space:nowrap}
.prices .go{text-align:right;width:1%;white-space:nowrap}
.prices th:first-child{width:46%}

/* notes */
.faq{margin-top:20px;border-top:2px solid var(--ink);max-width:820px}
.faq details{border-bottom:1px solid var(--rule-2)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;padding:16px 6px;font-weight:700;font-size:17.5px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";width:12px;height:12px;flex:none;margin-top:6px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(225deg);margin-top:10px}
.faq p{padding:0 6px 18px;color:var(--ink-2);max-width:68ch}

/* close: amount due */
.close{padding:8px var(--pad) 64px}
.due-box{border:2px solid var(--ink);padding:clamp(24px,4vw,44px);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}
.due-box h2{font-size:clamp(26px,3vw,38px);font-weight:800;max-width:20ch}

.foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:20px var(--pad) 28px;border-top:3px double var(--ink);font-size:14px;color:var(--muted)}
.foot nav{display:flex;gap:18px;flex-wrap:wrap}
.foot a{color:var(--muted)}

/* ---------- sign up / log in: an account form on the same paper ---------- */
.form-sheet{max-width:980px}
.form-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:0}
.form-side{padding:44px var(--pad);border-right:1px solid var(--rule)}
.form-side h1{font-size:clamp(32px,3.6vw,46px);font-weight:800;max-width:14ch}
.form-side ul{list-style:none;padding:0;margin:26px 0 0;border-top:2px solid var(--ink)}
.form-side li{display:grid;grid-template-columns:28px 1fr;align-items:center;padding:11px 0;border-bottom:1px solid var(--rule-2);color:var(--ink-2)}
.form-side li svg{width:22px;height:22px}
.form-main{padding:44px clamp(20px,4vw,48px)}
.form-main h2{font-size:28px;font-weight:800}
.form-main > p{color:var(--muted);margin:8px 0 22px}
.fields{display:flex;flex-direction:column;gap:16px}
.fields label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14.5px}
.fields input,.fields select{font:400 16.5px var(--type);padding:11px 12px;border:1px solid #b9bfc7;border-radius:6px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.fields input:hover,.fields select:hover{border-color:#8f969f}
.fields input:focus,.fields select:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.fields input[aria-invalid="true"]{border-color:var(--pen)}
.fields .btn{margin-top:4px;min-height:50px}
.fields .btn[disabled]{opacity:.6;cursor:progress}
.err{color:var(--pen-ink);font-size:14.5px;min-height:20px;font-weight:600}
.switch{margin-top:18px;font-size:15px;color:var(--muted)}
.legal{font-size:13.5px;color:var(--muted)}

/* ---------- terms / privacy ---------- */
.doc{padding:44px var(--pad) 72px;max-width:820px}
.doc h1{font-size:clamp(32px,4vw,44px);font-weight:800;margin-bottom:6px}
.doc .dated{color:var(--muted);font-size:14.5px}
.doc h2{font-size:21px;margin:32px 0 8px}
.doc p,.doc li{color:var(--ink-2);max-width:68ch}
.doc ul{padding-left:20px}

/* ---------- narrow screens ---------- */
@media (max-width:1020px){
  .hero-head{grid-template-columns:1fr;gap:18px}
  .meta .sample{margin-left:0;width:100%}
  .lines .row{grid-template-columns:minmax(0,1fr) 108px 112px 36px}
  .lines .q{display:none}
  .lines .note,.lines .note-h{grid-column:1 / -1}
  .lines .note-h{display:none}
  .lines .note:empty{display:none}
  .proof{grid-template-columns:1fr;gap:28px}
  .statement{max-width:480px}
  .shot,.shot.phone{grid-column:1 / -1}
  .shot.phone{max-width:340px}
  .form-wrap{grid-template-columns:1fr}
  .form-side{border-right:0;border-bottom:1px solid var(--rule)}
}
@media (max-width:700px){
  body{padding:0}
  .sheet{box-shadow:none}
  .hide-sm{display:none!important}
  .letterhead{padding:16px 18px}
  .brand small{display:none}
  .letterhead nav{gap:14px}
  .letterhead .btn{min-height:38px;padding:0 13px;font-size:14px}
  .hero{padding-top:30px}
  .lines{font-size:15px}
  .lines .row{grid-template-columns:minmax(0,1fr) 84px 96px 28px;column-gap:8px;padding:11px 2px}
  .lines .head{padding:8px 2px}
  .circled .ring{left:-10px;width:calc(100% + 18px)}
  .how{grid-template-columns:1fr}
  .how li + li{padding-left:0;border-left:0;border-top:1px solid var(--rule)}
  .checks tbody th{width:auto;display:block;padding-bottom:2px;border-bottom:0}
  .checks td{display:block;padding-top:0}
  .checks thead{display:none}
  .prices thead{display:none}
  .prices tr{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--rule-2);padding:12px 0}
  .prices th,.prices td{border:0;padding:4px 6px}
  .prices td.n:nth-of-type(1)::after{content:" invoices a month";font-weight:400;font-size:14px;color:var(--muted)}
  .prices .go{grid-column:1 / -1;text-align:left;padding-top:8px}
  .due-box{flex-direction:column;align-items:flex-start}

}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- colour: carbon-copy blue for actions and calm sections; red stays for mistakes ---------- */
.btn{background:var(--blue);border-color:var(--blue)}
.btn:hover{background:var(--blue-deep);border-color:var(--blue-deep)}
.btn.quiet{background:transparent;color:var(--blue-deep);border-color:var(--blue)}
.btn.quiet:hover{background:var(--blue-wash)}
.link:hover,a:hover{text-decoration-color:var(--blue)}
:focus-visible{outline-color:var(--blue)}
.checks thead th,.prices thead th,.statement caption{background:var(--blue-wash);color:var(--blue-deep);border-bottom-color:var(--blue-line)}
.checks,.prices,.how,.faq{border-top-color:var(--blue)}
.checks tbody th{color:var(--blue-deep)}
.how-band{background:var(--blue-wash);border-top-color:var(--blue-line)}
.how-band + .block{border-top-color:var(--blue-line)}
.how li + li{border-left-color:var(--blue-line)}
.how li::before{color:var(--blue)}
.prices tr.pick th,.prices tr.pick td{background:#fff8d6}
.prices tr.pick .btn.quiet{background:var(--blue);color:#fff}
.close .due-box{background:var(--blue);border-color:var(--blue);color:#fff}
.close .due-box .btn{background:#fff;color:var(--blue-deep);border-color:#fff}
.close .due-box .btn:hover{background:var(--blue-wash)}
.close .due-box .btn.quiet{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.close .due-box .btn.quiet:hover{background:rgba(255,255,255,.12)}
.close .due-box :focus-visible{outline-color:#fff}

/* monthly / yearly switch on the price sheet */
.period{display:inline-flex;margin-top:22px;border:1.5px solid var(--blue);border-radius:10px;overflow:hidden}
.period button{font:600 15px/1 var(--type);padding:11px 16px;border:0;background:transparent;color:var(--blue-deep);cursor:pointer}
.period button span{font-weight:500;font-size:13.5px;margin-left:4px;color:var(--stamp)}
.period button[aria-pressed=true]{background:var(--blue);color:#fff}
.period button[aria-pressed=true] span{color:#d9f5e6}
.prices .y{display:none}.prices[data-period=year] .m{display:none}.prices[data-period=year] .y{display:inline}
.prices .y em{display:block;font-style:normal;font-weight:500;font-size:13.5px;color:var(--stamp)}
.prices thead th,.prices thead th.n{font-size:13.5px;font-weight:600}
.prices td.n > small{display:block;font-weight:500;font-size:13.5px;color:var(--muted)}
.sent{margin-top:8px;padding:16px 18px;border:1px solid var(--blue-line);background:var(--blue-wash);border-radius:10px}.sent p{margin:0 0 8px}.sent p:last-child{margin:0}
