/* Extra sections on /invoicing/ (netlify/specs/website-invoicing-page.md). Uses the .fp tokens from /front.css.
   Kept in its own file so it does not collide with front.css edits for the front page. */
.iv-sample { padding: .75rem 0 0; border: 0; text-align: left; }
.iv-flow .f-win { margin-top: .25rem; }
.iv-flow .f-win-body { padding: .8rem; font-size: .85rem; }
.iv-flow .f-row { align-items: flex-start; }
.iv-flow .f-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.iv-flow .f-chip { flex: none; }
.iv-small { display: block; color: var(--f-muted); font-size: .8rem; }
.iv-flow .f-win-body { min-height: 7.5rem; display: flex; flex-direction: column; justify-content: center; }
.iv-list-h { margin: 1.4rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--f-muted); }
.iv-list-h + .f-checks { margin-top: .6rem; }
.iv-soon { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.iv-soon li { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.iv-split { align-items: start; }

/* The drawn invoice */
.iv-doc { padding: 1.25rem; }
.iv-doc-top { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--f-line-2); }
.iv-logo { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--f-blue-soft); color: var(--f-blue); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.iv-doc-biz b, .iv-doc-no b { display: block; line-height: 1.2; }
.iv-doc small, .iv-doc-no small { display: block; color: var(--f-muted); font-size: .8rem; }
.iv-doc-no { text-align: right; } .iv-doc-no b { letter-spacing: .08em; font-size: .85rem; color: var(--f-blue); }
.iv-doc-to { margin: 1rem 0; } .iv-doc-to b { display: block; }
.iv-doc-pay { margin: 1rem 0 0; padding: .7rem .85rem; border-radius: 10px; background: var(--f-bg); border: 1px solid var(--f-line-2); font-size: .88rem; }
.iv-docwin .f-sample { text-align: left; }
/* The three designs, drawn small */
.iv-thumbs { list-style: none; margin: 0; padding: 1rem 1.25rem .25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; border-top: 1px solid var(--f-line-2); }
.iv-thumbs li { display: grid; gap: .15rem; justify-items: start; }
.iv-thumbs b { font-size: .88rem; margin-top: .35rem; } .iv-thumbs small { color: var(--f-muted); font-size: .78rem; line-height: 1.3; }
.iv-thumb { display: grid; align-content: start; gap: 5px; width: 100%; min-height: 7.5rem; padding: 9px; border: 1px solid var(--f-line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.iv-thumb i { display: block; border-radius: 2px; background: var(--f-line-2); }
.iv-thumb .hd { height: 9px; width: 45%; background: var(--f-blue); }
.iv-thumb .ln { height: 4px; width: 70%; } .iv-thumb .ln.s { width: 40%; }
.iv-thumb .rows { height: 44px; margin-top: 4px; background: repeating-linear-gradient(to bottom, var(--f-line-2) 0 3px, transparent 3px 10px); border-radius: 0; }
.iv-thumb .tot { height: 7px; width: 38%; justify-self: end; background: var(--f-blue); }
.iv-thumb.modern .hd { width: auto; height: 22px; margin: -9px -9px 3px; border-radius: 0; }
.iv-thumb.compact { gap: 3px; } .iv-thumb.compact .hd { height: 6px; width: 34%; } .iv-thumb.compact .ln { height: 3px; }
.iv-thumb.compact .rows { height: 66px; background: repeating-linear-gradient(to bottom, var(--f-line-2) 0 2px, transparent 2px 6px); }
.iv-thumb.compact .tot { height: 5px; width: 30%; }

/* Two cards: today and next */
.iv-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.iv-two .f-card .f-tag { margin-bottom: .1rem; }
.iv-ticks { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .98rem; color: var(--f-muted); }
.iv-ticks li { position: relative; padding-left: 1.4rem; }
.iv-ticks li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--f-line); }
.iv-two .f-card:first-child .iv-ticks li::before { background: var(--f-green); }

/* Phone */
.iv-phone-wrap { display: flex; flex-direction: column; align-items: center; }
.iv-phone { width: min(17rem, 100%); border: .55rem solid #111827; border-radius: 2.2rem; background: var(--f-surface); box-shadow: var(--f-shadow); overflow: hidden; }
.iv-phone-notch { width: 40%; height: 1.1rem; margin: 0 auto; background: #111827; border-radius: 0 0 .8rem .8rem; }
.iv-phone-body { padding: 1rem 1.1rem 1.3rem; font-size: .9rem; }
.iv-phone p { margin: 0; }
.iv-ph-from { color: var(--f-muted); font-size: .82rem; }
.iv-ph-amt { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .2rem !important; }
.iv-ph-due { display: flex; gap: .5rem; align-items: center; margin-top: .3rem !important; color: var(--f-muted); }
.iv-ph-box { margin: 1rem 0; padding: .7rem .8rem; border-radius: 10px; background: var(--f-bg); border: 1px solid var(--f-line-2); }
.iv-ph-box small { display: block; color: var(--f-muted); font-size: .76rem; }
.iv-ph-lines { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--f-line-2); font-variant-numeric: tabular-nums; }
.iv-ph-btn { display: block; text-align: center; margin-top: 1rem; padding: .6rem .7rem; font-size: .92rem; }
.iv-phone-wrap .iv-sample { text-align: center; }

/* FAQ */
.iv-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.iv-faq > div { background: var(--f-surface); border: 1px solid var(--f-line); border-radius: 14px; padding: 1.1rem 1.25rem; }
.iv-faq h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.iv-faq p { margin: .45rem 0 0; color: var(--f-muted); font-size: .98rem; line-height: 1.55; }
.iv-faq.m-acc { gap: .5rem; }
.iv-faq.m-acc > div { padding: 0; }
.iv-faq.m-acc h3 button { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; min-height: 2.75rem; padding: .85rem 1rem; cursor: pointer; font: 600 1rem/1.35 var(--f-font); color: var(--f-ink); }
.iv-faq.m-acc h3 button::after { content: "+"; font-weight: 400; font-size: 1.3rem; color: var(--f-muted); }
.iv-faq.m-acc h3 button[aria-expanded="true"]::after { content: "\2212"; }
.iv-faq.m-acc h3 button:focus-visible { outline: 3px solid var(--f-blue); outline-offset: -3px; border-radius: 14px; }
.iv-faq.m-acc > div > :not(h3) { display: none; }
.iv-faq.m-acc > div.open > :not(h3) { display: block; padding: 0 1rem 1rem; margin: 0; }

@media (max-width: 52rem) {
  .iv-two, .iv-faq { grid-template-columns: 1fr; }
  .iv-split.flip > :first-child { order: 0; }
}
@media (max-width: 36rem) {
  .iv-two { display: grid; overflow: visible; margin-inline: 0; padding: 0; }
  .iv-two > .f-card { flex: none; padding: 1.1rem; }
  .iv-flow .f-win-body { min-height: 0; }
  .iv-doc { padding: .9rem; }
  .iv-doc-top { grid-template-columns: auto 1fr; }
  .iv-doc-no { grid-column: 1 / -1; text-align: left; }
  .iv-phone { width: min(15.5rem, 100%); }
}
/* Step 3 (pay online): the Pay now button on the sample phone; the PDF button becomes the quiet one. */
.iv-ph-pay { display: block; text-align: center; margin-top: 1rem; padding: .7rem .7rem; font-size: 1rem; border-radius: 10px; }
.iv-ph-safe { margin: .4rem 0 .9rem; text-align: center; font-size: .74rem; color: var(--f-muted); }
.iv-ph-pay ~ .iv-ph-btn { background: transparent; color: var(--f-ink, inherit); border: 1px solid var(--f-line-2); }
