/* Public site. Self-contained (the admin has its own stylesheet). Fonts are self-hosted: no third-party requests. */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/schibsted-grotesk-400-800.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3f6f5;        /* cool form paper */
  --sheet: #ffffff;
  --ink: #14233a;          /* document ink */
  --ink-2: #4a5a70;
  --rule: #d3dbe0;
  --stamp: #1c6b4c;        /* validation green */
  --stamp-ink: #ffffff;
  --stamp-soft: #e1efe8;
  --code-bg: #14233a;
  --code-ink: #dfe7f0;
  --code-tag: #8fb3d9;
  --code-val: #f2d48b;
  --band: #e9efed;
  --shadow: 0 1px 0 rgba(20, 35, 58, .06), 0 18px 40px -18px rgba(20, 35, 58, .35);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1a2b; --sheet: #17253a; --ink: #e8edf0; --ink-2: #a9b6c6; --rule: #2a3a52;
    --stamp: #4cb58a; --stamp-ink: #0b1a14; --stamp-soft: #173a2e; --code-bg: #0a1220; --band: #132136;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1a2b; --sheet: #17253a; --ink: #e8edf0; --ink-2: #a9b6c6; --rule: #2a3a52;
  --stamp: #4cb58a; --stamp-ink: #0b1a14; --stamp-soft: #173a2e; --code-bg: #0a1220; --band: #132136;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); font-feature-settings: "ss01";
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.fineprint { font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.fineprint a { color: inherit; }

.preview-bar { background: #fff4dc; color: #7a4f00; padding: 10px 20px; font-size: .9rem; }
.preview-bar a { color: inherit; font-weight: 600; margin-left: 10px; }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.wordmark.small { font-size: 1.1rem; }
.mark { width: 26px; height: 26px; }
.mark-sheet { fill: var(--sheet); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.mark-fold { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.mark-check { fill: none; stroke: var(--stamp); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a { padding: 10px 12px; text-decoration: none; font-weight: 550; color: var(--ink-2); }
.mainnav a:hover { color: var(--ink); }
.mainnav .nav-cta { color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 14px; margin-left: 6px; }
.mainnav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 8px; font: 650 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s;
}
.button.primary { background: var(--stamp); color: var(--stamp-ink); }
.button.primary:hover { background: color-mix(in srgb, var(--stamp) 85%, var(--ink)); color: var(--stamp-ink); }
.button.quiet { border-color: var(--rule); color: var(--ink); background: transparent; }
.button.quiet:hover { border-color: var(--ink); color: var(--ink); }

/* hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.nowrap { white-space: nowrap; }
.hero-copy .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }

/* the specimen: an invoice sheet, the XML it becomes, and the validator's stamp */
.specimen { position: relative; margin: 0; min-height: 540px; }
.sheet { position: absolute; background: var(--sheet); border-radius: 6px; box-shadow: var(--shadow); }
.invoice { top: 0; left: 0; width: 66%; padding: 22px 22px 46px; font-size: .82rem; border: 1px solid var(--rule); transform: rotate(-1.5deg); }
.inv-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.inv-title { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.inv-no { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; line-height: 1.4; }
.inv-parties .k { display: block; font-size: .72rem; color: var(--ink-2); }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines td { padding: 5px 0; border-top: 1px solid var(--rule); }
.inv-lines td:last-child { text-align: right; }
.inv-lines .sub td { color: var(--ink-2); }
.inv-lines .tot td { font-weight: 800; border-top: 2px solid var(--ink); font-size: .95rem; }
.inv-src, .xml-src { position: absolute; bottom: 14px; left: 22px; font-size: .72rem; color: var(--ink-2); }
.xml { right: 0; top: 232px; width: 78%; background: var(--code-bg); color: var(--code-ink); padding: 20px 20px 44px; }
.xml pre { margin: 0; overflow: hidden; font: 400 .74rem/1.65 var(--mono); white-space: pre; }
.xml .t { color: var(--code-tag); }
.xml b { color: var(--code-val); font-weight: 500; }
.xml i { color: var(--code-ink); font-style: normal; }
.xml .c { color: var(--code-tag); opacity: .7; }
.xml .xml-src { color: var(--code-tag); left: 20px; }
.stamp {
  position: absolute; right: 4%; top: 150px; z-index: 2; display: grid; justify-items: center; gap: 1px;
  padding: 10px 18px 12px; color: var(--stamp); border: 3px double var(--stamp); border-radius: 10px;
  background: color-mix(in srgb, var(--stamp-soft) 88%, transparent);
  font-weight: 700; font-size: .78rem; line-height: 1.25; transform: rotate(-9deg);
}
.stamp-big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.specimen figcaption { position: absolute; left: 0; right: 0; bottom: -44px; font-size: .82rem; color: var(--ink-2); }

/* The one orchestrated motion: the XML slides out from under the invoice, then the stamp lands. */
@media (prefers-reduced-motion: no-preference) {
  .xml { animation: slide-out .7s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .stamp { animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) 1.05s both; }
  @keyframes slide-out { from { transform: translate(-18%, -14%); opacity: 0; } }
  @keyframes stamp { from { transform: rotate(-9deg) scale(1.6); opacity: 0; } }
}

/* sections */
.band { padding: 80px 0; border-top: 1px solid var(--rule); }
.band h2 { margin-bottom: 14px; }
.section-lead { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; margin-bottom: 36px; }
.band > .wrap > h2 + .steps, .band > .wrap > h2 + .two-col, .band > .wrap > h2 + .table-scroll, .band > .wrap > h2 + .guide-list { margin-top: 32px; }

/* deadlines timeline */
.deadlines { background: var(--band); }
.timeline { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--rule); }
.timeline li { position: relative; padding: 32px 18px 0 0; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-2);
}
.timeline time { display: block; font-weight: 700; }
.timeline strong { display: block; font-size: 1.25rem; margin-top: 2px; letter-spacing: -.015em; }
.timeline p { color: var(--ink-2); font-size: .95rem; margin-top: 6px; line-height: 1.45; }
.timeline .tl-past::before { background: var(--ink-2); }
.timeline .tl-past { opacity: .8; }
.timeline .tl-next::before { width: 20px; height: 20px; top: -2px; left: -2px; border: 5px solid var(--stamp); background: var(--paper); }
.timeline .tl-next strong { color: var(--stamp); }
.tl-state, .countdown { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 650; padding: 3px 9px; border-radius: 99px; }
.tl-state { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); }
.countdown { background: var(--stamp); color: var(--stamp-ink); }

/* steps: a real sequence, so they're numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--stamp); margin-bottom: 14px; letter-spacing: -.04em; }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: 1rem; }

/* formats table */
.table-scroll { overflow-x: auto; }
.formats { width: 100%; border-collapse: collapse; min-width: 560px; }
.formats th, .formats td { text-align: left; vertical-align: top; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--rule); }
.formats thead th { font-size: .85rem; font-weight: 650; color: var(--ink-2); padding-top: 0; border-bottom: 2px solid var(--ink); }
.formats tbody th { font-size: 1.15rem; font-weight: 750; width: 18%; }
.formats td { color: var(--ink-2); max-width: 62ch; }
.formats td:last-child { width: 1%; white-space: nowrap; }
.status { display: inline-block; font-size: .82rem; font-weight: 650; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--rule); color: var(--ink-2); }
.m-only { display: none; }
.status.first { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-ink); }

/* promises */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; }
.ticks li, .crosses li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.ticks li::before, .crosses li::before { position: absolute; left: 2px; top: 13px; font-weight: 800; }
.ticks li::before { content: "✓"; color: var(--stamp); }
.crosses li::before { content: "✕"; color: var(--ink-2); }

/* guides */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.guide-list.stacked { grid-template-columns: 1fr; margin-top: 32px; }
.guide-list a { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.guide-list strong { font-size: 1.12rem; letter-spacing: -.01em; }
.guide-list span { color: var(--ink-2); font-size: .97rem; }
.guide-list a:hover strong { color: var(--stamp); text-decoration: underline; text-underline-offset: 3px; }

/* waitlist */
.signup { background: var(--ink); color: var(--paper); padding: 88px 0; }
.signup-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.signup h2 { margin-bottom: 14px; }
.signup p { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); max-width: 46ch; }
.signup .fineprint { color: color-mix(in srgb, var(--paper) 65%, var(--ink)); }
.signup a { color: var(--paper); }

/* forms */
.form { display: grid; gap: 10px; }
.form label { font-weight: 650; font-size: .95rem; }
.form input[type="email"], .form input[type="text"], .form textarea {
  width: 100%; font: 400 1.0625rem var(--sans); color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--rule); border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { border-color: var(--stamp); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--stamp) 30%, transparent); }
.form .inline-field { display: flex; gap: 8px; }
.form .inline-field input { flex: 1; min-width: 0; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-top: 6px; line-height: 1.45; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--stamp); }
.form .fineprint { margin-top: 6px; }
.form .button { justify-self: start; margin-top: 8px; }
.form .inline-field .button { margin-top: 0; }
.form-ok { background: color-mix(in srgb, var(--stamp) 14%, var(--paper)); color: var(--ink); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.form-error { background: #fdeceb; color: #a12828; border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-2); }
.form.boxed { margin-top: 32px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; }
.signup .form input { color: #14233a; background: #fff; border-color: transparent; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* customer app: e-invoice list */
.doc-list { list-style: none; margin: 24px 0 0; padding: 0; }
.doc-list li { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--rule); }
.doc-list .doc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page .doc-list .button, .band .doc-list .button { margin-top: 0; }
.doc-status { color: var(--ink-2); }

/* simple pages, guides and legal text */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.page .button { margin-top: 28px; }
article.legal { max-width: 720px; margin: 0 auto; padding: 64px 20px 96px; }
article.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
article.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
article.legal h3 { margin: 1.6rem 0 .5rem; }
article.legal p, article.legal ul, article.legal ol, article.legal table { margin: 0 0 1.05rem; }
article.legal p, article.legal li { line-height: 1.68; }
article.legal ul, article.legal ol { padding-left: 1.3rem; }
article.legal li { margin: .3rem 0; }
article.legal .lead { margin-bottom: 1.6rem; font-size: 1.15rem; }
article.legal p code, article.legal li code { overflow-wrap: anywhere; }
article.legal table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
article.legal td, article.legal th { border-top: 1px solid var(--rule); padding: 10px 14px 10px 0; vertical-align: top; text-align: left; }
article.legal code { font-family: var(--mono); font-size: .88em; background: var(--band); padding: 1px 5px; border-radius: 4px; }
article.legal pre { margin: 0 0 1.05rem; padding: 16px 18px; overflow-x: auto; background: var(--code-bg); color: var(--code-ink);
  border-radius: 6px; font: 400 .84rem/1.6 var(--mono); white-space: pre; tab-size: 2; -webkit-overflow-scrolling: touch; }
article.legal pre code { font: inherit; background: none; padding: 0; border-radius: 0; color: inherit; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.draft-note { background: #fff4dc; color: #7a4f00; padding: 10px 14px; border-radius: 8px; }

/* footer */
.sitefoot { border-top: 1px solid var(--rule); padding: 44px 0 56px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.foot-grid p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; font-size: .95rem; }
.foot-grid nav { display: grid; grid-auto-flow: column; gap: 4px 20px; align-content: start; }
.foot-grid nav a { padding: 8px 0; text-decoration: none; color: var(--ink-2); font-weight: 550; }
.foot-grid nav a:hover { color: var(--ink); }

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .specimen { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 26px 36px; }
  .timeline .tl-next::before { left: -2px; }
  .signup-grid, .two-col, .guide-list { grid-template-columns: 1fr; gap: 32px; }
  .guide-list { gap: 0; }
}
@media (max-width: 600px) {
  body.site { font-size: 1rem; }
  .hero { padding: 36px 0 84px; }
  .band, .signup { padding: 56px 0; }
  .mainnav a:not(.nav-cta) { padding: 10px 6px; }
  .mainnav .nav-cta { display: none; }
  /* phones: the specimen stacks in normal flow, overlapping by negative margins */
  .specimen { min-height: 0; display: flex; flex-direction: column; }
  .sheet { position: relative; }
  .invoice { width: 88%; padding: 16px 16px 40px; font-size: .74rem; }
  .xml { top: auto; right: auto; width: 94%; align-self: flex-end; margin-top: -84px; padding: 16px 14px 16px; }
  .xml pre { font-size: .6rem; }
  .xml .xml-src { position: static; display: block; margin-top: 12px; max-width: 60%; }
  .stamp { position: relative; right: auto; top: auto; align-self: flex-end; margin: -48px 8px 0 0; padding: 6px 12px 8px; font-size: .7rem; }
  .stamp-big { font-size: 1.5rem; }
  .specimen figcaption { position: static; margin-top: 14px; }
  .formats, .formats tbody, .formats tr, .formats th, .formats td { display: block; min-width: 0; width: auto; }
  .formats thead { display: none; }
  .formats tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .formats th, .formats td { border: 0; padding: 0; }
  .formats tbody th { display: flex; justify-content: space-between; align-items: center; width: auto; }
  .formats td { margin-top: 6px; }
  .formats td:last-child { display: none; }
  .formats .m-only { display: inline-block; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .form .inline-field { flex-direction: column; }
  .form .inline-field .button { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid nav { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}

/* Pricing: plan cards side by side, stacking on phones. */
.plans { list-style: none; margin: 24px 0 16px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan p { margin: 0; }
.plan-price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-price span, .plan-year, .plan-note { color: var(--ink-2); }
.plan-year { font-size: .9rem; }
.plan .plan-limit { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); font-weight: 650; }
.plan-note { font-size: .9rem; }
