/* ==========================================================================
   InvoicePad UK — design system v5
   Direction: "paper and ink" — warm neutral ground, deep green brand,
   crisp editorial typography, document-first product shots.
   ========================================================================== */

/* ---- Inter, self-hosted (latin + latin-ext subsets) ----
   Deliberately NOT loaded from Google Fonts: the site tells visitors that
   nothing leaves their browser, and a third-party font request would leak
   every visitor's IP and referrer. These two files are all the type we need. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- neutrals (warm paper) ---- */
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --line: #e7e5e0;
  --line-2: #f0eee9;

  /* ---- brand: deep green ---- */
  --brand: #0b6b54;
  --brand-700: #084f3e;
  --brand-600: #0a5d49;
  --brand-500: #12876a;
  --brand-100: #d9efe8;
  --brand-50: #f0f8f5;

  /* ---- support ---- */
  --amber: #b45309;
  --amber-100: #fdf3e6;
  --ok: #0b6b54;
  --warn: #b42318;
  --warn-50: #fdf1ef;

  /* ---- shape ---- */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* ---- elevation ---- */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-md: 0 4px 10px -2px rgba(16, 24, 40, .06), 0 14px 28px -6px rgba(16, 24, 40, .09);
  --sh-lg: 0 10px 20px -8px rgba(16, 24, 40, .10), 0 32px 56px -16px rgba(16, 24, 40, .18);
  --sh-brand: 0 1px 2px rgba(11, 107, 84, .20), 0 10px 24px -8px rgba(11, 107, 84, .45);

  --wrap: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.032em; }
h2 { font-size: clamp(23px, 2.8vw, 31px); line-height: 1.18; font-weight: 750; letter-spacing: -.026em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.014em; }
p { margin: 0 0 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 246, 243, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18.5px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--sh-brand); }
.logo .mark svg { width: 16px; height: 16px; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 550; padding: 9px 13px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap; transition: background .14s ease, color .14s ease; }
.nav a:hover { background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--sh-xs); }
.nav a.on { color: var(--brand-600); background: var(--brand-50); }
.nav .nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 10px; }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .nav .nav-sep { display: none; }
}
@media (max-width: 560px) {
  .nav .hide-xs { display: none; }
}
@media (max-width: 480px) {
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .bar .btn { padding: 9px 13px; font-size: 13.5px; }
  .logo { font-size: 17px; }
  .logo .mark { width: 25px; height: 25px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: var(--r);
  font-family: inherit; font-size: 15.5px; font-weight: 650; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, box-shadow .18s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn.primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 2px 4px rgba(11, 107, 84, .24), 0 14px 30px -8px rgba(11, 107, 84, .5); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--sh-xs); }
.btn.ghost:hover { border-color: #cdcac2; color: var(--ink); background: #fff; }
.btn.dark { background: var(--ink); color: #fff; box-shadow: var(--sh-sm); }
.btn.dark:hover { background: #1d2939; color: #fff; }
.btn.small { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn .ar { transition: transform .16s ease; }
.btn:hover .ar { transform: translateX(3px); }

/* ---------- Pills & eyebrows ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-600); background: var(--brand-50);
  border: 1px solid #cfe8e0; padding: 5px 12px 5px 10px; border-radius: var(--r-full);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); flex: none; }

.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .sp { color: #d0cdc6; }

.meta-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.meta-row .m { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 15px; height: 15px; flex: none; color: var(--faint); }

/* inline check list */
.check { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); padding: 0; list-style: none; }
.check li { display: inline-flex; align-items: center; gap: 8px; }
.check .tick {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand-100); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.check .tick svg { width: 11px; height: 11px; }

/* ---------- Sections ---------- */
main { padding: 0 0 40px; }
.section { margin-top: 76px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-500); margin: 0 0 10px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Home hero ---------- */
.hero { padding: 60px 0 0; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 940px) {
  .hero-split { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 44px; }
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-fine { font-size: 13.5px; color: var(--muted); margin: 18px 0 0; display: flex; align-items: center; gap: 8px; }
.hero-fine svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }

/* product shot: document in a frame */
.hero-art { position: relative; }
.doc-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.doc-frame__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.doc-frame__bar .d { width: 9px; height: 9px; border-radius: 50%; background: #dcd9d2; flex: none; }
.doc-frame__name {
  margin-left: 10px; font-size: 11.5px; font-weight: 600; color: var(--faint);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 3px 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-frame__body { padding: 26px 26px 28px; background: var(--surface); }

.mini-invoice { font-size: 12.5px; color: var(--ink-2); }
.mini-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.mini-brand { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mini-sub { font-size: 11px; color: var(--faint); margin-top: 3px; }
.mini-title { font-size: 15px; font-weight: 800; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; padding-top: 2px; }
.mini-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-meta span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.mini-meta b { font-size: 12.5px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mini-rows { padding: 6px 0 0; }
.mini-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.mini-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mini-row--h { border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.mini-row--h span { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.mini-row--h span:last-child { font-weight: 700; color: var(--faint); }
.mini-total {
  margin-top: 16px; padding: 13px 16px; border-radius: var(--r);
  background: var(--brand-50); border: 1px solid #d3eae2;
  display: flex; justify-content: space-between; align-items: center;
}
.mini-total span { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-600); }
.mini-total strong { font-size: 20px; font-weight: 800; color: var(--brand-700); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 8px 14px; font-size: 13px; font-weight: 650; color: var(--ink);
  box-shadow: var(--sh-md); white-space: nowrap;
}
.float-chip svg { width: 15px; height: 15px; flex: none; }
.float-chip--paid { top: -16px; right: 30px; color: var(--brand-700); }
.float-chip--paid svg { color: var(--brand-500); }
.float-chip--pdf { bottom: -16px; right: -14px; }
.float-chip--pdf svg { color: var(--warn); }
@media (max-width: 940px) {
  .float-chip--paid { top: -14px; right: 10px; }
  .float-chip--pdf { right: -6px; }
}
@media (max-width: 420px) { .float-chip { font-size: 12px; padding: 6px 11px; } }
@media (max-width: 560px) {
  .float-chip { font-size: 11.5px; padding: 5px 10px; }
  .float-chip--paid { top: -12px; right: 6px; }
  .float-chip--pdf { right: 0; bottom: -12px; }
}

/* ---------- Stat / trust band ---------- */
.statband {
  margin-top: 64px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.statband .s { padding: 22px 24px; border-left: 1px solid var(--line); }
.statband .s:first-child { border-left: none; }
.statband .n { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); display: block; line-height: 1.15; }
.statband .n em { font-style: normal; color: var(--brand); }
.statband .t { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: block; }
@media (max-width: 860px) {
  .statband { grid-template-columns: repeat(2, 1fr); }
  .statband .s:nth-child(3) { border-left: none; }
  .statband .s:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) { .statband { grid-template-columns: 1fr; } .statband .s { border-left: none; border-top: 1px solid var(--line); } .statband .s:first-child { border-top: none; } }

/* ---------- Tool grid ---------- */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.toolcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; box-shadow: var(--sh-xs); overflow: hidden;
  transition: transform .16s ease, box-shadow .2s ease, border-color .18s ease;
}
.toolcard::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.toolcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #dcd9d2; text-decoration: none; }
.toolcard:hover::after { transform: scaleX(1); }
.toolcard .ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: var(--brand-50); border: 1px solid #d9ebe4; color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.toolcard .ic svg { width: 22px; height: 22px; }
.toolcard h3 { margin: 0 0 7px; font-size: 17px; }
.toolcard p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); flex: 1; line-height: 1.6; }
.toolcard .go { font-size: 14px; font-weight: 650; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }
.toolcard .go svg { width: 15px; height: 15px; transition: transform .16s ease; }
.toolcard:hover .go { color: var(--brand-700); }
.toolcard:hover .go svg { transform: translateX(4px); }
.toolcard .badge {
  position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600);
  background: var(--brand-50); border: 1px solid #d3eae2; border-radius: var(--r-full); padding: 3px 9px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-xs); position: relative; overflow: hidden;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin: 0 0 7px; }
.step p { font-size: 14.5px; margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- CTA band ---------- */
.ctaband {
  margin-top: 76px; border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(150deg, #0d3b30 0%, #0b6b54 58%, #12876a 100%);
  color: #fff; padding: 52px 48px; box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.ctaband::before {
  content: ''; position: absolute; right: -80px; top: -110px; width: 340px; height: 340px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.ctaband::after {
  content: ''; position: absolute; right: 60px; bottom: -150px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.ctaband > * { position: relative; z-index: 1; }
.ctaband .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fd6c2; margin: 0 0 12px; }
.ctaband h2 { color: #fff; margin-bottom: 12px; max-width: 480px; }
.ctaband p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 16.5px; max-width: 480px; }
.ctaband .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.ctaband .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none; }
.ctaband .btn.ghost:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); color: #fff; }
.ctaband .btn.primary { background: #fff; color: var(--brand-700); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 12px 28px -10px rgba(0, 0, 0, .4); }
.ctaband .btn.primary:hover { background: #fff; color: var(--brand-700); }
@media (max-width: 860px) { .ctaband { grid-template-columns: 1fr; padding: 38px 28px; gap: 24px; } }

/* ---------- Feature two-column ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 32px; } }
.feature .flist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feature .flist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.feature .flist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand); }
.feature .flist b { color: var(--ink); display: block; font-weight: 650; }
.feature .flist span { color: var(--muted); font-size: 14.5px; }

/* small stat card cluster (feature art) */
.statcards { display: grid; gap: 14px; }
.statcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-sm); display: flex; gap: 16px; align-items: center; }
.statcard .ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); border: 1px solid #d9ebe4; }
.statcard .ic svg { width: 20px; height: 20px; }
.statcard .t { font-size: 15px; font-weight: 650; color: var(--ink); }
.statcard .s { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-xs); overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease;
}
.faq details[open] { border-color: #d9ebe4; box-shadow: var(--sh-sm); }
.faq summary {
  font-weight: 650; font-size: 16px; cursor: pointer; color: var(--ink);
  padding: 17px 46px 17px 20px; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq summary:hover { background: var(--surface-2); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 84px; border-top: 1px solid var(--line); background: var(--surface-2); padding: 48px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.site-footer h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 0 0 14px; }
.site-footer a { color: var(--muted); display: block; padding: 4px 0; font-size: 14.5px; }
.site-footer a:hover { color: var(--brand-600); text-decoration: none; }
.site-footer .about { max-width: 320px; }
.site-footer .about p { font-size: 14.5px; margin: 0 0 10px; }
.site-footer .legal {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px;
}
.site-footer .legal p { margin: 0; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   TOOL PAGES
   ========================================================================== */

/* compact page head — keeps the tool above the fold */
.page-head { padding: 34px 0 26px; }
.page-head h1 { font-size: clamp(27px, 3.5vw, 38px); letter-spacing: -.03em; margin-bottom: 12px; max-width: 760px; }
.page-head .lede { font-size: 17.5px; color: var(--ink-2); margin: 0; max-width: 640px; }
.page-head .meta-row { margin-top: 16px; }
.page-head .check { margin-top: 16px; }
@media (max-width: 720px) { .page-head { padding: 24px 0 20px; } }

/* tool shell */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 26px; align-items: start; }
@media (max-width: 960px) { .tool-layout { grid-template-columns: 1fr; gap: 22px; } }
.preview-side { position: sticky; top: 82px; }
@media (max-width: 960px) { .preview-side { position: static; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.card h2 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.02em; }
.card .hint { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }

.tool-card { padding: 0; overflow: hidden; }
.tool-card .tool-card__head {
  padding: 18px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tool-card .tool-card__head .ttl { font-size: 15.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.tool-card .tool-card__head .ttl svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.tool-card .tool-card__head .sub { font-size: 12.5px; color: var(--faint); }
.tool-card__body { padding: 20px 22px 22px; }

.demo-note {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--brand-700); background: var(--brand-50);
  border: 1px solid #d3eae2; border-radius: var(--r); padding: 10px 14px; margin-bottom: 20px;
}
.demo-note svg { width: 16px; height: 16px; flex: none; }
.demo-note b { font-weight: 700; }

/* form */
.fsection { border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 18px; }
.fsection:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.fsection h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.fsection h3 .sn {
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600);
  font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid #d9ebe4;
}
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--ink); background: #fff; font-family: inherit;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .03);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #cfccc5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500); background: #fff;
  box-shadow: 0 0 0 3.5px rgba(11, 107, 84, .13);
}
.field textarea { resize: vertical; min-height: 70px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23667085' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.field input::placeholder, .field textarea::placeholder { color: #b3b8c2; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.three { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 13px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .three { grid-template-columns: 1fr 1fr; } .three > :first-child { grid-column: 1 / -1; } }

/* toggle */
.toggle {
  margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  display: flex; align-items: center; gap: 11px; cursor: pointer; background: var(--surface-2);
  transition: border-color .14s ease, background .14s ease;
}
.toggle:hover { border-color: #cfccc5; background: #fff; }
.toggle input { width: 17px; height: 17px; flex: none; accent-color: var(--brand); margin: 0; cursor: pointer; }
.toggle label { margin: 0; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* items table */
table.items { width: 100%; border-collapse: separate; border-spacing: 0; margin: 2px 0 12px; }
table.items thead th {
  background: transparent; color: var(--faint); font-size: 10.5px; font-weight: 700;
  text-align: left; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding: 0 8px 8px;
}
table.items thead th:first-child { padding-left: 2px; }
table.items thead th:last-child { padding: 0; }
table.items tbody td { padding: 4px 4px; border-bottom: 1px solid var(--line-2); vertical-align: middle; background: transparent; }
table.items tbody td:first-child { padding-left: 0; }
table.items tbody td:last-child { padding-right: 0; text-align: right; width: 36px; }
table.items input {
  width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px;
  font-size: 14.5px; background: transparent; color: var(--ink); font-family: inherit;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
table.items input::placeholder { color: #b3b8c2; }
table.items input:hover { border-color: var(--line); background: #fff; }
table.items input:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px rgba(11, 107, 84, .12); }
.desc-col { width: 44%; }
.num-col { width: 17%; text-align: right; }
table.items thead th.num-col { text-align: right; }
table.items input.q, table.items input.r { text-align: right; font-variant-numeric: tabular-nums; }
.amt-cell { padding: 12px 8px 12px 4px !important; font-size: 14.5px; font-weight: 650; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-del {
  background: none; border: none; color: #c3c7cf; cursor: pointer; font-size: 17px; line-height: 1;
  padding: 0; border-radius: 50%; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center; transition: color .14s ease, background .14s ease;
}
.row-del:hover { color: var(--warn); background: var(--warn-50); }
.add {
  background: none; border: 1.5px dashed #cdd8d4; color: var(--brand-600); border-radius: 10px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 650; cursor: pointer; font-family: inherit;
  transition: background .14s ease, border-color .14s ease;
}
.add:hover { background: var(--brand-50); border-color: var(--brand-500); }

/* totals */
.totals { margin-top: 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; }
.tot-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.tot-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.tot-row.grand { font-weight: 800; font-size: 19px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 11px; color: var(--ink); letter-spacing: -.02em; }
.tot-row.grand span:last-child { color: var(--brand-700); }

/* actions */
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.actions .btn.primary { flex: 1; min-width: 170px; font-size: 16px; padding: 13px 20px; }
.savedchip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650;
  color: var(--brand-700); background: var(--brand-100); border: 1px solid #c6e4da;
  padding: 5px 11px; border-radius: var(--r-full);
  opacity: 0; transform: translateY(-3px); transition: opacity .22s ease, transform .22s ease;
}
.savedchip.show { opacity: 1; transform: none; }

/* ad slots — reserved, quiet, never looks broken */
.ads {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 14px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #c2c6ce; text-align: center; background: var(--surface-2);
}
.inline-ads { margin-top: 20px; }

/* ---------- Live preview: make it look like a real document ---------- */
.preview-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.preview-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.preview-toolbar .dots { display: flex; gap: 5px; flex: none; }
.preview-toolbar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcd9d2; display: block; }
.preview-toolbar .fname {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 3px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.preview-toolbar .pt-save { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid #cfe8e0;
  border-radius: var(--r-full); padding: 4px 10px;
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); display: block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } html { scroll-behavior: auto; } }

.preview-doc { background: #eeedea; padding: 26px; }
.preview-inner {
  background: #fff; border-radius: 3px; padding: 34px 34px 30px; font-size: 13px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .10), 0 12px 34px -8px rgba(16, 24, 40, .22);
  max-height: 660px; overflow-y: auto;
}
@media (max-width: 560px) { .preview-doc { padding: 14px; } .preview-inner { padding: 22px 18px; } }
.p-invoice { min-height: 280px; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.p-brand { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.025em; line-height: 1.2; }
.p-title { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: .16em; text-transform: uppercase; padding-top: 4px; }
.p-muted { color: var(--faint); }
.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.p-cols.meta { grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.p-block { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.p-block .lbl { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 3px; }
.p-block strong { color: var(--ink); font-weight: 700; }
.p-vatline { font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.p-vatline .lbl { display: inline; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-right: 6px; }
.p-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.p-table th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 0 6px 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.p-table th.num, .p-table td.num { text-align: right; }
.p-table td { padding: 9px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 12.5px; }
.p-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-table th:first-child, .p-table td:first-child { padding-left: 0; }
.p-table th:last-child, .p-table td:last-child { padding-right: 0; }
.p-totals { margin-left: auto; width: 232px; }
.p-tot { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; color: var(--ink-2); }
.p-tot span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.p-tot.grand {
  font-weight: 800; font-size: 15px; margin-top: 8px; padding: 10px 12px; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid #d3eae2; border-radius: 8px; letter-spacing: -.02em;
}
.p-tot.grand span:last-child { color: var(--brand-700); }
.p-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--faint); }

/* ---------- Sidebar widgets ---------- */
.side { display: grid; gap: 18px; margin-top: 20px; }
.side .card { padding: 20px 22px; }
.side h3 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
/* Any icon sitting inside a card heading must be sized, or the SVG fills the card. */
.card h3 svg, .side h3 svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.side ul { padding: 0; margin: 0; font-size: 14.5px; color: var(--ink-2); list-style: none; display: grid; gap: 10px; }
.side li { position: relative; padding-left: 22px; line-height: 1.55; }
.side li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand-50); border: 1px solid #cfE8e0;
}
.side li::after {
  content: ''; position: absolute; left: 4px; top: 11px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--brand-500);
}
.side .card--cta { background: linear-gradient(150deg, #0d3b30, #0b6b54); border-color: transparent; color: #fff; }
.side .card--cta h3 { color: #fff; }
.side .card--cta p { color: rgba(255, 255, 255, .82); font-size: 14.5px; margin: 0 0 16px; }
.side .card--cta .btn { background: #fff; color: var(--brand-700); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.side .card--cta .btn:hover { background: #fff; color: var(--brand-700); }

/* ---------- Content below the tool (2-col with sticky aside) ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 52px; align-items: start; margin-top: 72px; }
@media (max-width: 1000px) { .content-layout { grid-template-columns: 1fr; gap: 40px; } }
.aside-sticky { position: sticky; top: 86px; display: grid; gap: 18px; }
@media (max-width: 1000px) { .aside-sticky { position: static; } }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-xs); }
.toc h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a {
  display: block; font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 8px;
  border-left: 2px solid transparent; line-height: 1.45;
}
.toc a:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; border-left-color: var(--brand-500); }

/* prose */
.prose { max-width: 720px; }
.prose > .lede { font-size: 18.5px; color: var(--ink-2); line-height: 1.6; }
.prose h2 { font-size: clamp(22px, 2.4vw, 27px); margin: 52px 0 14px; letter-spacing: -.025em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17.5px; margin: 30px 0 10px; scroll-margin-top: 90px; }
.prose p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 18px; list-style: none; display: grid; gap: 11px; }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose ul li::before {
  content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand-500);
}
.prose ol { counter-reset: ol; }
.prose ol li { padding-left: 34px; }
.prose ol li::before {
  counter-increment: ol; content: counter(ol);
  position: absolute; left: 0; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand-50); border: 1px solid #d3eae2; color: var(--brand-700);
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { font-weight: 550; text-decoration: underline; text-decoration-color: #b8d9cf; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand-500); }

/* takeaway / callout */
.takeaways {
  background: var(--brand-50); border: 1px solid #d3eae2; border-left: 3px solid var(--brand-500);
  border-radius: var(--r); padding: 20px 24px; margin: 26px 0 34px;
}
.takeaways h3 { margin: 0 0 12px; color: var(--brand-700); font-size: 15px; letter-spacing: -.01em; }
.takeaways ul { display: grid; gap: 9px; margin: 0; }
.takeaways li { color: var(--ink-2); font-size: 15.5px; }
.takeaways li::before { background: var(--brand-500); }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; margin: 24px 0; box-shadow: var(--sh-xs); font-size: 15.5px; color: var(--ink-2);
}
.callout b { color: var(--ink); }

/* article step cards (guide) */
.article-steps { display: grid; gap: 14px; margin: 26px 0 8px; }
.astep {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--sh-xs);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.astep:hover { border-color: #d9ebe4; box-shadow: var(--sh-sm); }
.astep .n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
}
.astep h3 { margin: 4px 0 8px; font-size: 17px; }
.astep p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.astep p + p { margin-top: 10px; }

/* inline CTA card */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(150deg, #0d3b30, #0b6b54); border-radius: var(--r-lg);
  padding: 26px 30px; margin: 36px 0; color: #fff; box-shadow: var(--sh-md);
}
.inline-cta h3 { color: #fff; margin: 0 0 6px; font-size: 19px; }
.inline-cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 15px; }
.inline-cta .btn { background: #fff; color: var(--brand-700); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); flex: none; }
.inline-cta .btn:hover { background: #fff; color: var(--brand-700); }

/* related tools strip */
.rel { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.rel a {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: var(--r-full);
  text-decoration: none; box-shadow: var(--sh-xs); transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.rel a:hover { background: var(--brand-50); border-color: #cfe8e0; color: var(--brand-700); text-decoration: none; }

/* steps grid (reused on tool pages) */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.howto .step { padding: 20px 22px; }
.howto .step .n { width: 28px; height: 28px; font-size: 13px; margin-bottom: 12px; }
.howto .step h3 { font-size: 15.5px; }
.howto .step p { font-size: 14px; }

/* ---------- Email template cards ---------- */
.email-list { display: grid; gap: 18px; }
.email-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease;
}
.email-card:hover { border-color: #d9ebe4; box-shadow: var(--sh-md); }
.email-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.email-head .tag2 {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-600); background: var(--brand-50);
  border: 1px solid #d3eae2; border-radius: var(--r-full); padding: 3px 9px; margin-bottom: 8px;
}
.email-head .subject { font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.email-body {
  margin: 0; padding: 18px 20px; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.72; color: var(--ink-2); background: #fff;
}
.copybtn.copied { background: var(--brand); color: #fff; border-color: var(--brand); }
.copybtn.copied:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* timeline (when to send) */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--brand-500);
}
.timeline .w { font-size: 13.5px; font-weight: 700; color: var(--ink); display: block; }
.timeline .d { font-size: 13.5px; color: var(--muted); }

/* ---------- Article-style page head (guide) ---------- */
.page-head--article { padding: 42px 0 12px; }
.page-head--article h1 { font-size: clamp(29px, 4vw, 42px); line-height: 1.1; max-width: 860px; }
.page-head--article .lede { font-size: 19px; max-width: 720px; }
@media (max-width: 720px) { .page-head--article { padding: 28px 0 10px; } }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -16px rgba(16, 24, 40, .30);
  transform: translateY(116%); visibility: hidden;
  transition: transform .34s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .34s;
}
.cookie-banner.show { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.2, .7, .3, 1), visibility 0s; }
/* Keep the fixed banner from covering the end of the page while it is up. */
body.has-cookie-banner { padding-bottom: 96px; }
@media (max-width: 720px) { body.has-cookie-banner { padding-bottom: 220px; } }
.cookie-banner__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; gap: 16px;
}
.cookie-banner__ic { width: 26px; height: 26px; flex: none; color: var(--brand-600); }
.cookie-banner__text { margin: 0; flex: 1; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cookie-banner__text a { font-weight: 650; }
.cookie-banner__acts { display: flex; gap: 10px; flex: none; }
.cookie-banner__acts .btn { min-width: 132px; }
/* Accept and Reject are deliberately styled IDENTICALLY (ICO requires equal
   prominence: same size, same contrast, same number of clicks). Do not give
   either button the brand colour or extra weight — that is a dark pattern. */
.cookie-banner__acts .btn.cookie-choice,
.cookie-banner__acts .btn.cookie-choice:hover {
  background: #fff; border-color: var(--line); color: var(--ink);
  box-shadow: var(--sh-xs); font-weight: 650;
}
.cookie-banner__acts .btn.cookie-choice:hover { border-color: #cdcac2; }
@media (max-width: 720px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .cookie-banner__acts { justify-content: stretch; }
  .cookie-banner__acts .btn { flex: 1; min-width: 0; }
}

/* ---------- Print: only the invoice document ---------- */@media print {
  body { background: #fff; font-size: 12px; }
  .site-header, .form-side, .side, .prose, .content-layout, .faq, .actions, .inline-ads,
  .crumbs, .site-footer, .preview-toolbar, .savedchip, .demo-note, .page-head .check,
  .page-head .meta-row, .statband, .ctaband, .hero-art, .cookie-banner { display: none !important; }
  body.has-cookie-banner { padding-bottom: 0; }
  .wrap { max-width: none; padding: 0; }
  .page-head { padding: 0 0 10px; }
  .page-head h1 { font-size: 20px; margin: 0; }
  .page-head .lede { display: none; }
  .tool-layout { grid-template-columns: 1fr; gap: 0; }
  .preview-side { position: static; }
  .preview-panel { border: none; box-shadow: none; border-radius: 0; }
  .preview-doc { background: #fff; padding: 0; }
  .preview-inner { box-shadow: none; padding: 0; max-height: none; overflow: visible; }
  .p-table td { border-bottom: 1px solid #ddd; }
  .p-tot.grand { background: #fff; border-color: #999; }
  @page { margin: 14mm; }
}
