@font-face {
  font-family: "Knowledge";
  src: url("/fonts/knowledge2017-regular-webfont.woff2") format("woff2"),
       url("/fonts/knowledge2017-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Knowledge";
  src: url("/fonts/knowledge2017-medium-webfont.woff2") format("woff2"),
       url("/fonts/knowledge2017-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Knowledge";
  src: url("/fonts/knowledge2017-bold-webfont.woff2") format("woff2"),
       url("/fonts/knowledge2017-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root { --orange: #d64000; --ink: #222; --muted: #555; --line: #dcdcdc; --bg: #f5f5f5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Knowledge", "Source Sans 3", "Segoe UI", system-ui, sans-serif; line-height: 1.4; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header and logo */
.brand { padding: 24px 0 0; }
.logo { display: block; height: 64px; width: auto; }

/* Page title */
h1 { margin: 28px 0 6px; font-size: 30px; font-weight: 500; letter-spacing: -0.3px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.step svg { width: 14px; height: 14px; flex: none; fill: currentColor; }

/* Layout */
.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding-bottom: 32px; }
.card { background: #fff; border-radius: 20px; padding: 28px 30px; margin-bottom: 28px; }
.card h2 { margin: 0 0 20px; font-size: 24px; font-weight: 500; }

/* Invoice box: neutral border with a brand-orange accent, so it reads as "your invoice" rather than a warning */
.plan { border: 1px solid var(--line); border-left: 4px solid var(--orange); background: #fafafa; border-radius: 6px; padding: 16px 20px; }
.plan-sub { font-size: 16px; color: var(--muted); }
.plan-sub span { color: var(--ink); font-weight: 500; }
.plan-amt { font-size: 32px; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.plan-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Order summary */
.total { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.total strong { display: block; font-size: 28px; color: var(--ink); line-height: 1.2; margin-top: 2px; }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.save { display: block; font-size: 14px; margin-bottom: 16px; }
.save input { margin-right: 8px; }

/* Messages */
#err { color: #b00020; font-size: 15px; margin: 0; }
#err:empty { display: none; }
.ok { color: #0a6b2b; font-weight: 500; }
.ok:empty { display: none; }
.noscript { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 0 0 20px; }

/* Footer (shown only if you enable the footer block in index.html) */
.site-foot { font-size: 14px; color: var(--muted); padding: 0 0 40px; }
.site-foot a { color: var(--ink); }

/* Tablet and mobile: invoice details first, then payment form */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; gap: 0; }
  .grid .col:last-child { order: -1; }
  .card { padding: 22px 20px; margin-bottom: 20px; }
  .logo { height: 48px; }
  h1 { font-size: 26px; }
}
