/* NakedERP page: "Laufzettel" (job sheet).
 *
 * Loaded after product.css. The page is a drafting table: petrol paper with a fine plan grid, and on it one sheet that
 * follows a commercial-kitchen project from quote to e-invoice. The one object on the page is that sheet in the hero.
 * It fills itself station by station and then waits for an answer (how much of the final invoice the customer retains
 * as security). The four chapters below each have one CSS loop.
 *
 * Palette: ink #14181a, petrol #00485a (the site's), coral #df9784 (the site's), teal-grey #83a3ac. Coral text on paper
 * is darkened to #9c4a37 (4.5:1). Type: the site's Helvetica, no webfont; monospace is the system's.
 *
 * Motion is CSS only, except the sheet (js/nakederp.js, which sets classes and `hidden`). Base styles are the finished
 * picture; the animations start from the unfinished one, so prefers-reduced-motion just switches them off. */

.p-nakederp { background: #e3e9e8; }

.nk {
   --ink: #14181a;
   --petrol: #00485a;
   --coral: #df9784;
   --coral-deep: #9c4a37;
   --teal: #83a3ac;
   --paper: #f4f6f3;
   --ground: #e3e9e8;
   --mist: #c9d9dc;
   --muted: #3d4a4d;
   --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

   margin: 0;
   padding: 0;
   max-inline-size: none;
   color: var(--ink);
   font-weight: 400;
}

.nk [hidden] { display: none !important; }

.nk .mono { font-family: var(--mono); }

.nk :where(a, button):focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.nk .dark :where(a, button):focus-visible { outline-color: var(--coral); }

.nk section { margin-block-start: 0; }

.nk h1,
.nk h2 { font-weight: 700; }

.nk p,
.nk li { font-size: inherit; }

.nk .pad { padding-inline: 10vw; }

/* ----------------------------------------------------------------- hero */

.nk .grid {
   background-color: var(--petrol);
   background-image:
      linear-gradient(rgb(131 163 172 / .24) 1px, transparent 1px),
      linear-gradient(90deg, rgb(131 163 172 / .24) 1px, transparent 1px),
      linear-gradient(rgb(131 163 172 / .1) 1px, transparent 1px),
      linear-gradient(90deg, rgb(131 163 172 / .1) 1px, transparent 1px);
   background-size: 144px 144px, 144px 144px, 24px 24px, 24px 24px;
   animation: drift 80s linear infinite;
}

@keyframes drift { to { background-position: 144px 144px, 144px 144px, 24px 24px, 24px 24px; } }

.nk .dark { color: #eef4f4; }
.nk .dark a { color: inherit; }

.nk .hero {
   display: flex;
   flex-wrap: wrap;
   align-items: flex-start;
   gap: 3.5rem 4.5rem;
   padding-block: 2.5rem 6.5rem;
}

.hero__text { flex: 1 1 32rem; min-inline-size: 0; }

.nk .crumbs { margin-block: 0 2.25rem; color: var(--mist); font-size: 1rem; }
.nk .crumbs [aria-current] { color: #eef4f4; }

.nk .status { margin: 0 0 1.75rem; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--mist); }

.nk h1 {
   margin: 0 0 2rem;
   font-size: clamp(2.9rem, 6.6vw, 6.25rem);
   letter-spacing: -.04em;
   line-height: .95;
}

.nk h1 em { font-style: normal; color: var(--coral); }

.w { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) backwards; }

@keyframes rise { from { opacity: 0; transform: translateY(.55em); } }

.vh {
   position: absolute;
   inline-size: 1px;
   block-size: 1px;
   overflow: hidden;
   clip-path: inset(50%);
   white-space: nowrap;
}

.nk .hero__lede { max-inline-size: 35em; margin: 0 0 2.25rem; font-size: 1.3rem; line-height: 1.5; }

.nk .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 0; }
.nk .actions span { font-size: 1.05rem; color: var(--mist); }

.nk .btn {
   display: inline-block;
   padding: .9rem 2rem;
   border-radius: 99px;
   background: var(--coral);
   color: var(--ink);
   font-size: 1.1rem;
   font-weight: 700;
   text-decoration: none;
   transition: background-color .25s, transform .25s;
}

.nk .btn:hover { background: #eab3a4; transform: translateY(-2px); }

/* ------------------------------------------------------------ job sheet */

.lz { flex: 1 1 28rem; min-inline-size: min(100%, 19rem); max-inline-size: 37.5rem; }

.lz__rail { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 12px; }

.rb {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   min-block-size: 44px;
   padding: 0 16px;
   border: 1.5px solid var(--teal);
   border-radius: 99px;
   background: transparent;
   color: #eef4f4;
   font: inherit;
   font-size: .95rem;
   cursor: pointer;
   transition: background-color .3s, color .3s;
}

.rb:hover { border-color: #eef4f4; }
.rb.done { border-color: #eef4f4; background: #eef4f4; color: var(--petrol); }
.rb.cur { border-color: var(--coral); box-shadow: 0 0 0 3px rgb(223 151 132 / .4); }
.rb .mono { font-size: .8rem; }

.lz__prog { block-size: 3px; margin-block-end: 22px; background: rgb(131 163 172 / .45); }
.lz__prog i { display: block; block-size: 3px; background: var(--coral); transition: inline-size .7s cubic-bezier(.4, 0, .2, 1); }

.lz__wrap { filter: drop-shadow(0 28px 34px rgb(0 22 28 / .5)); }

.sheet { position: relative; padding: 0 0 20px 40px; background: var(--paper); color: var(--ink); }

.perf {
   position: absolute;
   inset: 0 auto 0 0;
   inline-size: 22px;
   background: radial-gradient(circle at 11px 18px, var(--petrol) 5.5px, transparent 6px) 0 0 / 22px 36px repeat-y;
}

.sh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 14px 0; }
.sh .mono { font-size: .78rem; letter-spacing: .08em; }
.sh b { display: block; margin-block-start: 4px; font-size: 1.2rem; line-height: 1.2; }
.sh small { display: block; margin-block-start: 4px; font: .75rem var(--mono); color: var(--muted); }

.tag {
   display: inline-block;
   padding: 3px 10px;
   border: 2.5px solid var(--petrol);
   color: var(--petrol);
   font-size: .95rem;
   font-weight: 800;
   letter-spacing: .1em;
   white-space: nowrap;
   transform: rotate(-3deg);
   animation: slam .55s cubic-bezier(.2, .9, .3, 1) both;
}

.tag.c {
   border-color: var(--coral-deep);
   color: var(--coral-deep);
   background: repeating-linear-gradient(135deg, transparent 0 5px, rgb(156 74 55 / .16) 5px 6px);
}

@keyframes slam {
   0%   { opacity: 0; transform: scale(2.3) rotate(-9deg); }
   55%  { opacity: 1; transform: scale(.92) rotate(-3deg); }
   75%  { transform: scale(1.05) rotate(-3deg); }
   100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}

.rows { margin: 0; padding: 0; list-style: none; }

.row {
   display: grid;
   grid-template-columns: 30px 1fr auto;
   align-items: center;
   gap: 12px;
   margin: 0;
   padding: 13px 24px 13px 0;
   border-block-start: 1.5px dashed rgb(20 24 26 / .4);
   transition: opacity .4s;
}

.row.off { opacity: .45; }
.row.off .st { visibility: hidden; }
.row .n { font: .8rem var(--mono); }
.row .nm { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.row .ds { font-size: .85rem; line-height: 1.4; color: var(--muted); }

.st {
   padding: 2px 9px;
   border: 2px solid var(--petrol);
   color: var(--petrol);
   font-size: .78rem;
   font-weight: 700;
   letter-spacing: .08em;
   white-space: nowrap;
   transform: rotate(-3deg);
}

.row.on .st { animation: slam .6s cubic-bezier(.2, .9, .3, 1) both; }

.ask,
.plan { margin: 6px 24px 0 0; padding: 14px 16px; }

.ask { border: 2px solid var(--coral-deep); animation: pulse 2.6s ease-in-out infinite; }

@keyframes pulse { 50% { background: rgb(223 151 132 / .2); } }

.ask p,
.plan p { margin: 0; }

.ask .q { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.ask .s { margin-block-start: 4px; font-size: .85rem; color: var(--muted); }

.ask button,
.rst {
   min-block-size: 44px;
   margin: 10px 10px 0 0;
   padding: 0 20px;
   border: 1.5px solid var(--ink);
   border-radius: 0;
   background: transparent;
   color: var(--ink);
   font: inherit;
   font-size: 1rem;
   cursor: pointer;
}

.ask button:hover,
.rst:hover { background: var(--ink); color: var(--paper); }

.plan { border: 2px solid var(--petrol); }
.plan:focus { outline: none; }
.plan .k { margin-block-end: 4px; font: .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.rate { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-block-end: 1.5px dashed rgb(20 24 26 / .4); }
.rate strong { font-size: 1.15rem; white-space: nowrap; }
.rate .c { color: var(--coral-deep); }
.plan .n1 { margin-block-start: 6px; font-size: .85rem; color: var(--muted); }
.plan .n2 { margin-block-start: 10px; font-size: .9rem; }
.plan .rst { margin: 12px 0 0; }

.hint { margin: 14px 24px 0 0; font-size: .85rem; color: var(--muted); }

.dim {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-block-start: 22px;
   color: var(--mist);
   font-size: .9rem;
}

.dim::before,
.dim::after {
   content: "";
   flex: 1;
   block-size: 10px;
   border-inline-start: 1.5px solid var(--teal);
   background: linear-gradient(var(--teal), var(--teal)) center / 100% 1.5px no-repeat;
}

.dim::after { border-inline-start: 0; border-inline-end: 1.5px solid var(--teal); }

/* ------------------------------------------------------------- marquee */

.mqw {
   overflow: hidden;
   background: var(--coral);
   color: var(--ink);
   border-block: 1.5px solid var(--ink);
}

.mq { display: flex; inline-size: max-content; animation: mq 70s linear infinite; }
.mq ul { display: flex; margin: 0; padding: 0; list-style: none; }

.mq li {
   display: flex;
   align-items: center;
   margin: 0;
   padding: 18px 0 18px 52px;
   font-size: 1.35rem;
   font-weight: 700;
   white-space: nowrap;
}

.mq li::after {
   content: "";
   display: inline-block;
   inline-size: 8px;
   block-size: 8px;
   margin-inline-start: 52px;
   background: var(--ink);
   transform: rotate(45deg);
}

@keyframes mq { to { transform: translateX(-50%); } }

.nk .scope { padding-block: 4.5rem 0; }
.nk .scope p { max-inline-size: 52em; margin: 0; font-size: 1.2rem; line-height: 1.55; }

/* ------------------------------------------------------------- chapters */

.nk .chap {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 3.5rem 5rem;
   padding-block: 6.5rem;
}

.chap__text { flex: 1 1 27rem; min-inline-size: 0; }
.chap__vis { flex: 1 1 28rem; min-inline-size: 0; max-inline-size: 42rem; }

.nk .light { background: var(--ground); }
.nk .ink { background: var(--ink); color: #eef4f4; }

.kap { margin: 0 0 1.25rem; font: .85rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.nk .h2 {
   margin: 0 0 1.5rem;
   font-size: clamp(2.1rem, 4.6vw, 4rem);
   letter-spacing: -.035em;
   line-height: 1;
   text-wrap: balance;
}

.nk .lead { max-inline-size: 36em; margin: 0 0 1.75rem; font-size: 1.25rem; line-height: 1.5; }

.nk .fl { display: grid; gap: .9rem; max-inline-size: 36em; margin: 0; padding: 0; list-style: none; }
.nk .fl li { margin: 0; padding-block-start: .9rem; border-block-start: 1.5px dashed currentcolor; font-size: 1.1rem; line-height: 1.45; }
.nk .fl strong { font-weight: 700; }

.loopwrap { animation: lw 14s linear infinite; }
.loopwrap12 { animation: lw12 12s linear infinite; }

@keyframes lw { 0% { opacity: 0; } 5%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lw12 { 0% { opacity: 0; } 4%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* 1 · retention */

.card { box-sizing: border-box; padding: 28px; background: var(--paper); color: var(--ink); }

.lane { margin-block-end: 26px; }
.lane:last-child { margin-block-end: 0; }
.lane-l { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-block-end: 8px; font-size: .95rem; line-height: 1.3; }
.lane-l .mono { font-size: .8rem; }
.track { position: relative; block-size: 30px; overflow: hidden; background: #cdd8d6; }
.seg { position: absolute; inset-block: 0; }
.hatch { background: repeating-linear-gradient(135deg, var(--coral) 0 4px, var(--coral-deep) 4px 5px); }

.r1 { left: 0; width: 95%; background: var(--petrol); transform-origin: left; animation: ein-r1 14s linear infinite; }
.r2 { left: 95%; width: 5%; transform-origin: left; animation: ein-r2 14s linear infinite; }
.play { position: absolute; inset-block: 0; left: calc(100% - 4px); width: 4px; background: var(--ink); animation: ein-play 14s linear infinite; }

.due {
   display: inline-block;
   padding: 1px 8px;
   border: 2px solid var(--coral-deep);
   color: var(--coral-deep);
   font-size: .8rem;
   font-weight: 700;
   animation: ein-due 14s linear infinite;
}

.lane-t { display: flex; justify-content: space-between; margin-block-start: 6px; font-size: .85rem; }

@keyframes ein-r1 { 0%, 14% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes ein-r2 { 0%, 84% { transform: scaleX(0); } 90%, 100% { transform: scaleX(1); } }
@keyframes ein-play { 0%, 32% { left: 0; } 84%, 100% { left: calc(100% - 4px); } }
@keyframes ein-due { 0%, 85% { opacity: 0; } 88%, 100% { opacity: 1; } }

/* 2 · installation app */

.phwrap { display: flex; justify-content: center; padding-block-end: 20px; }

.ph {
   position: relative;
   box-sizing: border-box;
   inline-size: 300px;
   max-inline-size: 100%;
   padding: 20px 16px 22px;
   border: 8px solid var(--ink);
   border-radius: 36px;
   background: var(--paper);
   color: var(--ink);
   box-shadow: 0 26px 40px rgb(0 22 28 / .45);
}

.ph .mono { font-size: .75rem; letter-spacing: .08em; }
.ph b { display: block; margin: 4px 0 12px; font-size: 1.15rem; line-height: 1.2; }

.pr {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   padding: 11px 0;
   border-block-start: 1.5px dashed rgb(20 24 26 / .4);
   font-size: .95rem;
   line-height: 1.25;
}

.pr small { display: block; font-size: .8rem; color: var(--muted); }

.ck { display: flex; flex: none; align-items: center; justify-content: center; inline-size: 26px; block-size: 26px; border: 2px solid var(--ink); }
.ck svg { display: block; inline-size: 18px; block-size: 18px; }
.ck1 svg { animation: c1 14s linear infinite; }
.ck2 svg { animation: c2 14s linear infinite; }
.ck3 svg { animation: c3 14s linear infinite; }
.ck4 svg { animation: c4 14s linear infinite; }

@keyframes c1 { 0%, 8% { transform: scale(0); } 12%, 100% { transform: scale(1); } }
@keyframes c2 { 0%, 22% { transform: scale(0); } 26%, 100% { transform: scale(1); } }
@keyframes c3 { 0%, 36% { transform: scale(0); } 40%, 100% { transform: scale(1); } }
@keyframes c4 { 0%, 66% { transform: scale(0); } 70%, 100% { transform: scale(1); } }

.sig { display: block; inline-size: 100%; block-size: 56px; }
.sig path { stroke-dasharray: 260; stroke-dashoffset: 0; animation: sg 14s linear infinite; }

@keyframes sg { 0%, 46% { stroke-dashoffset: 260; } 64%, 100% { stroke-dashoffset: 0; } }

.toast {
   position: absolute;
   inset-inline: 16px;
   inset-block-end: -18px;
   padding: 10px;
   background: var(--petrol);
   color: #eef4f4;
   font-size: .95rem;
   font-weight: 700;
   text-align: center;
   animation: ts 14s linear infinite;
}

@keyframes ts { 0%, 72% { opacity: 0; transform: translateY(10px); } 76%, 92% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }

/* 3 · e-invoice */

.einv { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }

.inv {
   position: relative;
   box-sizing: border-box;
   flex: 1 1 12rem;
   overflow: hidden;
   padding: 24px;
   border: 1.5px solid var(--ink);
   background: #fbfcfb;
   color: var(--ink);
}

.inv .mono { margin-block-end: 14px; font-size: .75rem; letter-spacing: .08em; }
.bar { block-size: 10px; margin-block-end: 12px; background: #cdd8d6; }
.bar.t { margin-block-start: 22px; background: var(--ink); }

.scan {
   position: absolute;
   inset-inline: 0;
   top: 100%;
   block-size: 3px;
   background: var(--coral);
   box-shadow: 0 0 0 1px var(--coral-deep);
   opacity: 0;
   animation: scan 12s linear infinite;
}

@keyframes scan { 0%, 6% { top: 0; opacity: 0; } 8% { top: 0; opacity: 1; } 50% { top: 100%; opacity: 1; } 52%, 100% { top: 100%; opacity: 0; } }

.xml {
   box-sizing: border-box;
   flex: 1.4 1 17rem;
   min-inline-size: 0;
   margin: 0;
   padding: 22px 24px;
   overflow-x: auto;
   background: var(--ink);
   color: #eef4f4;
   font: .9rem/1.75 var(--mono);
   white-space: pre-wrap;
   overflow-wrap: anywhere;
}

.xl { display: block; }
.xl1 { animation: xl1 12s linear infinite; }
.xl2 { animation: xl2 12s linear infinite; }
.xl3 { animation: xl3 12s linear infinite; }
.xl4 { animation: xl4 12s linear infinite; }
.xl5 { animation: xl5 12s linear infinite; }

@keyframes xl1 { 0%, 10% { clip-path: inset(0 100% 0 0); } 18%, 100% { clip-path: inset(0); } }
@keyframes xl2 { 0%, 18% { clip-path: inset(0 100% 0 0); } 26%, 100% { clip-path: inset(0); } }
@keyframes xl3 { 0%, 26% { clip-path: inset(0 100% 0 0); } 34%, 100% { clip-path: inset(0); } }
@keyframes xl4 { 0%, 34% { clip-path: inset(0 100% 0 0); } 42%, 100% { clip-path: inset(0); } }
@keyframes xl5 { 0%, 42% { clip-path: inset(0 100% 0 0); } 50%, 100% { clip-path: inset(0); } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 20px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--coral); font-size: .95rem; font-weight: 700; }
.chip1 { animation: h1 12s linear infinite; }
.chip2 { animation: h2 12s linear infinite; }
.chip3 { animation: h3 12s linear infinite; }

@keyframes h1 { 0%, 56% { background: transparent; } 60%, 100% { background: var(--coral); } }
@keyframes h2 { 0%, 66% { background: transparent; } 70%, 100% { background: var(--coral); } }
@keyframes h3 { 0%, 76% { background: transparent; } 80%, 100% { background: var(--coral); } }

.cap { margin: 14px 0 0; font: .8rem var(--mono); color: var(--muted); }
.ink .cap { color: #b3c5c9; }

/* 4 · agents */

.term {
   box-sizing: border-box;
   padding: 26px;
   border: 1.5px solid var(--teal);
   background: #0c1011;
   color: #eef4f4;
   font: .97rem/1.6 var(--mono);
}

.tl { margin: 0 0 14px; }
.tl:last-child { margin-block-end: 0; }
.tl b { display: inline-block; min-inline-size: 5em; color: var(--coral); font-weight: 400; }
.tl.ag b { color: var(--teal); }
.ruck { margin-inline-start: -12px; padding: 10px 12px; border: 1.5px solid var(--coral); }
.t1 { animation: la1 20s linear infinite; }
.t2 { animation: la2 20s linear infinite; }
.t3 { animation: la3 20s linear infinite; }
.t4 { animation: la4 20s linear infinite; }
.t5 { animation: la5 20s linear infinite; }
.t6 { animation: la6 20s linear infinite; }

@keyframes la1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes la2 { 0%, 16% { opacity: 0; transform: translateY(8px); } 19%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes la3 { 0%, 30% { opacity: 0; transform: translateY(8px); } 33%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes la4 { 0%, 44% { opacity: 0; transform: translateY(8px); } 47%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes la5 { 0%, 60% { opacity: 0; transform: translateY(8px); } 63%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes la6 { 0%, 74% { opacity: 0; transform: translateY(8px); } 77%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.caret { display: inline-block; inline-size: 9px; block-size: 1.05em; margin-inline-start: 6px; background: var(--coral); vertical-align: text-bottom; animation: bl 1s steps(1) infinite; }

@keyframes bl { 50% { opacity: 0; } }

/* ------------------------------------------------------------- contact */

.nk .contact { padding-block: 7rem 7.5rem; }
.nk .contact .h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.nk .contact .lead { margin-block-end: 2.25rem; max-inline-size: 40em; }

.nk .others { padding-block: 4.5rem 6rem; }
.nk .others h2 { margin-block-start: 0; }

/* ----------------------------------------------------------- narrow */

@media (max-width: 32.5rem) {
   .row { grid-template-columns: 28px 1fr; }
   .row .st { grid-column: 2; justify-self: start; }
   .sheet { padding-left: 34px; }
   .perf { inline-size: 18px; background: radial-gradient(circle at 9px 18px, var(--petrol) 4.5px, transparent 5px) 0 0 / 18px 36px repeat-y; }
   .card { padding: 20px; }
}

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
   .nk *,
   .nk *::before,
   .nk *::after { animation: none !important; transition: none !important; }

   .mq { inline-size: auto; flex-wrap: wrap; }
   .mq ul { flex-wrap: wrap; }
   .mq ul + ul { display: none; }
}

/* The list of the other systems, on the page's grey-green ground: product.css's greys are for white. */
.nk .others h2 { font-weight: 400; font-size: 1.35rem; }
.nk .others__list span { color: var(--muted); }
